Home
last modified time | relevance | path

Searched refs:CommuteIdx0 (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp375 unsigned CommuteIdx0 = TargetInstrInfo::CommuteAnyOperandIndex; in tryAddToFoldList() local
377 bool CanCommute = TII->findCommutedOpIndices(*MI, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
380 if (CommuteIdx0 == OpNo) in tryAddToFoldList()
383 CommuteOpNo = CommuteIdx0; in tryAddToFoldList()
391 if (CanCommute && (!MI->getOperand(CommuteIdx0).isReg() || in tryAddToFoldList()
396 !TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1)) in tryAddToFoldList()
408 unsigned OtherIdx = CommuteOpNo == CommuteIdx0 ? CommuteIdx1 : CommuteIdx0; in tryAddToFoldList()
424 TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()