[llvm] [MachineCSE][AArch64] Coalesce subregister copies behind an opt-in target hook (PR #224593)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 04:50:54 PDT 2026


================
@@ -291,7 +291,8 @@ define i64 @smull_ldrsw_shift(ptr %x0, i64 %x1) {
 ; CHECK-LABEL: smull_ldrsw_shift:
 ; CHECK:       // %bb.0: // %entry
 ; CHECK-NEXT:    ldrsw x8, [x0]
-; CHECK-NEXT:    smull x0, w8, w1
+; CHECK-NEXT:    sxtw x9, w1
+; CHECK-NEXT:    smull x0, w8, w9
----------------
davemgreen wrote:

These seem like regressions. And a bit odd, I would expect them to fold away in ISel, but that might not happen if the pattern is only looking at known bits. Have they been updated correctly or is this causing issues here?

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


More information about the llvm-commits mailing list