================ @@ -290,37 +291,40 @@ bool SIFoldOperands::updateOperand(FoldCandidate &Fold) const { if (Fold.Commuted) TII->commuteInstruction(*Inst32, false); - return true; - } - assert(!Fold.needsShrink() && "not handled"); + Fold.UseMI = Inst32; + Fold.UseOpNo = AMDGPU::getNamedOperandIdx(Fold.UseMI->getOpcode(), + AMDGPU::OpName::src0); ---------------- jayfoad wrote:
Adding the assert showed up some problems to do with knowing whether or not the instruction has been commuted. I need to spend some more time on that. https://github.com/llvm/llvm-project/pull/68426 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits