[llvm-branch-commits] [llvm] AMDGPU: Support VALU add instructions in localstackalloc (PR #101692)

Stanislav Mekhanoshin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 2 12:21:23 PDT 2024


================
@@ -809,7 +826,59 @@ int64_t SIRegisterInfo::getFrameIndexInstrOffset(const MachineInstr *MI,
   return getScratchInstrOffset(MI);
 }
 
+static bool isFIPlusImmOrVGPR(const SIRegisterInfo &TRI,
+                              const MachineInstr &MI) {
+  const MachineOperand &Src0 = MI.getOperand(1);
----------------
rampitec wrote:

Assert this is an add or move the function inside the needsFrameBaseReg?

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


More information about the llvm-branch-commits mailing list