[llvm] [WIP] Optimize S_MOV frame index elimination support (PR #101322)

Pankaj Dwivedi via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 23:58:41 PDT 2024


================
@@ -8966,10 +8966,10 @@ MachineInstrBuilder SIInstrInfo::getAddNoCarry(MachineBasicBlock &MBB,
                              : RS.scavengeRegisterBackwards(
                                    *RI.getBoolRC(), I, /* RestoreAfter */ false,
                                    0, /* AllowSpill */ false);
-
-  // TODO: Users need to deal with this.
   if (!UnusedCarry.isValid())
-    return MachineInstrBuilder();
+    // We are using the mad_u32_u24 primarily as an add with no carry out
----------------
PankajDwivedi-25 wrote:

should add new helper for this?

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


More information about the llvm-commits mailing list