forked from OSchip/llvm-project
[AMDGPU] Be more specific in needsFrameBaseReg
A condition "mayLoadOrStore" is too broad for that function. Differential Revision: https://reviews.llvm.org/D95700
This commit is contained in:
parent
ddc4b56eef
commit
9dbe736cbd
|
@ -408,7 +408,7 @@ int64_t SIRegisterInfo::getFrameIndexInstrOffset(const MachineInstr *MI,
|
|||
}
|
||||
|
||||
bool SIRegisterInfo::needsFrameBaseReg(MachineInstr *MI, int64_t Offset) const {
|
||||
if (!MI->mayLoadOrStore())
|
||||
if (!SIInstrInfo::isMUBUF(*MI) && !SIInstrInfo::isFLATScratch(*MI))
|
||||
return false;
|
||||
|
||||
int64_t FullOffset = Offset + getScratchInstrOffset(MI);
|
||||
|
|
Loading…
Reference in New Issue