mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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
f23effe39b
commit
cea4122bba
@ -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…
x
Reference in New Issue
Block a user