[llvm] [AArch64] Disable coalescing of SUBREG_TO_REG with subreg liveness. (PR #174185)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 12 08:47:13 PST 2026


================
@@ -214,8 +218,10 @@ define void @t17(i64 %a) {
 define i8 @LdOffset_i8(ptr %a)  {
 ; CHECK-LABEL: LdOffset_i8:
 ; CHECK:       // %bb.0:
-; CHECK-NEXT:    add x8, x0, #253, lsl #12 // =1036288
-; CHECK-NEXT:    ldrb w0, [x8, #3704]
----------------
gbossu wrote:

I find it interesting that `KILL` can be used to "copy" registers of different sizes. I guess this is fine and the MachineVerifier wouldn't shout, but now I'm wondering what the code would look like if `w8` had another use.

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


More information about the llvm-commits mailing list