[llvm] [AMDGPU] Fix implicit $vcc operands after parsing MIR (PR #87781)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 6 13:10:01 PDT 2024
================
@@ -642,6 +642,17 @@ void GCNSubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
Policy.ShouldTrackLaneMasks = true;
}
+void GCNSubtarget::mirFileLoaded(MachineFunction &MF) const {
+ if (isWave32()) {
+ // Fix implicit $vcc operands after MIParser has verified that they match
+ // the instruction definitions.
+ for (auto &MBB : MF) {
+ for (auto &MI : MBB)
+ InstrInfo.fixImplicitOperands(MI);
----------------
arsenm wrote:
I've been meaning to try to use HwMode to swap out all the wavesize operands by construction
https://github.com/llvm/llvm-project/pull/87781
More information about the llvm-commits
mailing list