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

Sergey Shcherbinin via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 10:12:05 PDT 2025


================
@@ -131,12 +131,11 @@ define i32 @negative_test_type_is_struct(i32 %c, ptr %a, ptr %b) {
 ; CHECK-NEXT:    mov w8, w0
 ; CHECK-NEXT:  .LBB2_2: // %for.body
 ; CHECK-NEXT:    // =>This Inner Loop Header: Depth=1
-; CHECK-NEXT:    ldr w9, [x1]
+; CHECK-NEXT:    ldr w9, [x1], #4
----------------
SergeyShch01 wrote:

Ok, added llvm/test/CodeGen/AArch64/ldst_update_cfpath.mir.

During writing the test I realized that liveness of super-/sub-registers should be checked also (accidently wrote such test example :) ) - then improved the code.

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


More information about the llvm-commits mailing list