llvm-project
079932a9 - [ARM] Do not let a DBG_VALUE start the A15 S->D rewrite (#242636)

Commit
1 day ago
[ARM] Do not let a DBG_VALUE start the A15 S->D rewrite (#242636) `A15SDOptimizer::runOnInstruction` runs on every instruction, including `DBG_VALUE`s, and `getReadDPRs` does not skip them. A debug value of a D register built from two S registers therefore starts the rewrite and adds `vdup`/`vext` under `-g` only. This happens when a variable holds a `<2 x float>` vector built from two floats. Return early for debug instructions. The new function in `a15-SD-dep.ll` builds a `<2 x float>` from two floats, and a new RUN line repeats the run with the optimization enabled under `-debugify-and-strip-all-safe`, which gives the vector a debug use. Without the change that run emits `vdup.32`/`vext.32`; with it no instruction is added. This PR is assisted by Claude and reviewed by yqtian-se.
Author
Parents
Loading