[llvm] r275131 - AMDGPU: Enable trackLivenessAfterRegAlloc
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 16:56:31 PDT 2016
Author: arsenm
Date: Mon Jul 11 18:56:30 2016
New Revision: 275131
URL: http://llvm.org/viewvc/llvm-project?rev=275131&view=rev
Log:
AMDGPU: Enable trackLivenessAfterRegAlloc
This has caught a number of bugs.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h
Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp?rev=275131&r1=275130&r2=275131&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Mon Jul 11 18:56:30 2016
@@ -245,6 +245,11 @@ bool SIRegisterInfo::requiresVirtualBase
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))
Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h?rev=275131&r1=275130&r2=275131&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h Mon Jul 11 18:56:30 2016
@@ -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;
More information about the llvm-commits
mailing list