[llvm] [AMDGPU] Switch V_CNDMASK operands to shrink it into VOP2 (PR #135162)
Mirko BrkuĊĦanin via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 10:03:59 PDT 2025
================
@@ -1010,6 +1162,9 @@ bool SIShrinkInstructions::run(MachineFunction &MF) {
// provide a hint to the register allocator to use VCC and then we
// will run this pass again after RA and shrink it if it outputs to
// VCC.
+ Register NewVCC = trySwapCndOperands(MI);
+ DstReg = NewVCC == AMDGPU::NoRegister ? DstReg : NewVCC;
----------------
mbrkusanin wrote:
This makes it seem like the comment above now refers to his function call and not "setRegAllocationHint" below
https://github.com/llvm/llvm-project/pull/135162
More information about the llvm-commits
mailing list