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

Sirish Pande via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 14:25:08 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,
----------------
srpande wrote:

We could change computeRegisterLiveness to change to do the following:
1. Default as is right now.
2. Just do backward scan to defs
3. Just do forward scan to uses.

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


More information about the llvm-commits mailing list