forked from OSchip/llvm-project
AMDGPU: Enable trackLivenessAfterRegAlloc
This has caught a number of bugs. llvm-svn: 275131
This commit is contained in:
parent
0da268d13a
commit
e3742466b9
|
@ -245,6 +245,11 @@ bool SIRegisterInfo::requiresVirtualBaseRegisters(
|
|||
return true;
|
||||
}
|
||||
|
||||
bool SIRegisterInfo::trackLivenessAfterRegAlloc(const MachineFunction &MF) const {
|
||||
// This helps catch bugs as verifier errors.
|
||||
return true;
|
||||
}
|
||||
|
||||
int64_t SIRegisterInfo::getFrameIndexInstrOffset(const MachineInstr *MI,
|
||||
int Idx) const {
|
||||
if (!SIInstrInfo::isMUBUF(*MI))
|
||||
|
|
|
@ -57,6 +57,7 @@ public:
|
|||
|
||||
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
|
||||
bool requiresVirtualBaseRegisters(const MachineFunction &Fn) const override;
|
||||
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override;
|
||||
|
||||
int64_t getFrameIndexInstrOffset(const MachineInstr *MI,
|
||||
int Idx) const override;
|
||||
|
|
Loading…
Reference in New Issue