[llvm] [AArch64] Run optimizeTerminators earlier too. (PR #170907)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 00:55:46 PST 2025


https://github.com/davemgreen commented:

> What about cases like this:
> 
> mov w10, wzr
> mul x8, x0, x2
> stp x8, x9, [x4]
> cbz w10, .LBB2_2

Do you have an example where you see that come up? Ideally we would propagate the wzr to the cbz, and then this optimization should kick-in.

https://github.com/llvm/llvm-project/pull/170907


More information about the llvm-commits mailing list