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

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 2 12:41:53 PDT 2024


================
@@ -797,6 +797,23 @@ int64_t SIRegisterInfo::getScratchInstrOffset(const MachineInstr *MI) const {
 
 int64_t SIRegisterInfo::getFrameIndexInstrOffset(const MachineInstr *MI,
                                                  int Idx) const {
+  switch (MI->getOpcode()) {
----------------
arsenm wrote:

The only modifier would be clamp to saturate the add. It should work out the same since the clamp bit will be preserved 

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


More information about the llvm-branch-commits mailing list