[llvm] [AArch64LoadStoreOpt] BaseReg update is searched also in CF successor (PR #145583)

Sergey Shcherbinin via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 08:10:15 PDT 2025


SergeyShch01 wrote:

All green, one approval from @john-brawn-arm .  
Commit message below—please squash-and-merge for me, thanks!

--------8<--------  
[AArch64LoadStoreOpt] BaseReg update is searched also in CF successor

Look for reg update instruction (to merge w/ mem instruction into pre/post-increment form) not only inside a single MBB but also along a CF path going downward w/o side enters such that BaseReg is alive along it but not at its exits.

Regression test is updated accordingly.
--------8<--------


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


More information about the llvm-commits mailing list