[llvm] [AMDGPU] Save/Restore SCC bit across waterfall loop. (PR #68363)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 08:09:44 PDT 2023


================
@@ -5094,6 +5094,39 @@ unsigned SIInstrInfo::getVALUOp(const MachineInstr &MI) const {
       "Unexpected scalar opcode without corresponding vector one!");
 }
 
+bool SIInstrInfo::isSCCDefinedBefore(MachineBasicBlock &MBB,
----------------
arsenm wrote:

I guess PeepholeOpt can't deal with the intermediate def. You still should use computeRegisterLiveness 

https://github.com/llvm/llvm-project/pull/68363


More information about the llvm-commits mailing list