[llvm] r246056 - AMDGPU/SI: Report SIFixSGPRLiveRanges changed function

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 12:12:03 PDT 2015


Author: arsenm
Date: Wed Aug 26 14:12:03 2015
New Revision: 246056

URL: http://llvm.org/viewvc/llvm-project?rev=246056&view=rev
Log:
AMDGPU/SI: Report SIFixSGPRLiveRanges changed function

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp?rev=246056&r1=246055&r2=246056&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp Wed Aug 26 14:12:03 2015
@@ -114,6 +114,7 @@ bool SIFixSGPRLiveRanges::runOnMachineFu
   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::runOnMachineFu
                 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::runOnMachineFu
     }
   }
 
-  return false;
+  return MadeChange;
 }




More information about the llvm-commits mailing list