AMDGPU: Enable trackLivenessAfterRegAlloc

This has caught a number of bugs.

llvm-svn: 275131
This commit is contained in:
Matt Arsenault 2016-07-11 23:56:30 +00:00
parent 0da268d13a
commit e3742466b9
2 changed files with 6 additions and 0 deletions

View File

@ -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))

View File

@ -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;