summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-26 19:12:03 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-26 19:12:03 +0000
commit602a16d3db1142bb2474c82fd4f9fe97f3fe0acf (patch)
treee634e19e0c609d5a1d4eb0889538c53e7fe14654 /llvm/lib/Target
parentb610a45c7bad22b5186c4c2b4fa22d8b8018632a (diff)
downloadbcm5719-llvm-602a16d3db1142bb2474c82fd4f9fe97f3fe0acf.tar.gz
bcm5719-llvm-602a16d3db1142bb2474c82fd4f9fe97f3fe0acf.zip
AMDGPU/SI: Report SIFixSGPRLiveRanges changed function
llvm-svn: 246056
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp b/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
index 5f25c69fde0..abe331477ad 100644
--- a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
@@ -114,6 +114,7 @@ bool SIFixSGPRLiveRanges::runOnMachineFunction(MachineFunction &MF) {
const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
const SIRegisterInfo *TRI = static_cast<const SIRegisterInfo *>(
MF.getSubtarget().getRegisterInfo());
+ bool MadeChange = false;
MachinePostDominatorTree *PDT = &getAnalysis<MachinePostDominatorTree>();
std::vector<std::pair<unsigned, LiveRange *>> SGPRLiveRanges;
@@ -209,6 +210,8 @@ bool SIFixSGPRLiveRanges::runOnMachineFunction(MachineFunction &MF) {
TII->get(AMDGPU::SGPR_USE))
.addReg(Reg, RegState::Implicit);
+ MadeChange = true;
+
SlotIndex SI = LIS->InsertMachineInstrInMaps(NCDSGPRUse);
LIS->extendToIndices(*LR, SI.getRegSlot());
@@ -221,5 +224,5 @@ bool SIFixSGPRLiveRanges::runOnMachineFunction(MachineFunction &MF) {
}
}
- return false;
+ return MadeChange;
}
OpenPOWER on IntegriCloud