[clang] [llvm] [AMDGPU] Change CF intrinsics lowering to reconverge on predecessors. (PR #92809)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 10:23:52 PDT 2024
================
@@ -2103,12 +2103,36 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
MI.setDesc(get(AMDGPU::S_MOV_B64));
break;
+ case AMDGPU::S_CMOV_B64_term:
+ // This is only a terminator to get the correct spill code placement during
+ // register allocation.
+ MI.setDesc(get(AMDGPU::S_CMOV_B64));
+ break;
+
case AMDGPU::S_MOV_B32_term:
// This is only a terminator to get the correct spill code placement during
// register allocation.
MI.setDesc(get(AMDGPU::S_MOV_B32));
break;
+ case AMDGPU::S_CMOV_B32_term:
+ // This is only a terminator to get the correct spill code placement during
+ // register allocation.
+ MI.setDesc(get(AMDGPU::S_CMOV_B32));
+ break;
+
+ case AMDGPU::S_CSELECT_B32_term:
+ // This is only a terminator to get the correct spill code placement during
+ // register allocation.
+ MI.setDesc(get(AMDGPU::S_CSELECT_B32));
+ break;
+
+ case AMDGPU::S_CSELECT_B64_term:
+ // This is only a terminator to get the correct spill code placement during
+ // register allocation.
+ MI.setDesc(get(AMDGPU::S_CSELECT_B64));
+ break;
----------------
arsenm wrote:
Can you split out the low level operation handling like this into a separate PR?
https://github.com/llvm/llvm-project/pull/92809
More information about the llvm-commits
mailing list