[llvm] [AMDGPU][CodeGen] Place `S_NOP` after `S_SETREG_IMM32_B32` in predecessor MBB (PR #209620)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 03:49:59 PDT 2026
================
@@ -432,23 +433,68 @@ AMDGPULowerVGPREncoding::handleCoissue(MachineBasicBlock::instr_iterator I) {
return I;
}
+/// Returns whether \p MI is a S_SETREG_IMM32_B32(MODE).
+static bool isSetregMode(const MachineInstr &MI, const SIInstrInfo &TII) {
+ if (MI.getOpcode() != AMDGPU::S_SETREG_IMM32_B32)
----------------
arsenm wrote:
It's also suspicious this isn't using the _mode pseudo invariant?
https://github.com/llvm/llvm-project/pull/209620
More information about the llvm-commits
mailing list