mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Add a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a837ac357c
commit
54f009f5a4
@ -440,7 +440,9 @@ void SIInstrInfo::legalizeOperands(MachineInstr *MI) const {
|
||||
// Legalize VOP2
|
||||
if (isVOP2(MI->getOpcode()) && Src1Idx != -1) {
|
||||
MachineOperand &Src1 = MI->getOperand(Src1Idx);
|
||||
// Legalize VOP2 instructions where src1 is not a VGPR.
|
||||
|
||||
// Legalize VOP2 instructions where src1 is not a VGPR. An SGPR input must
|
||||
// be the first operand, and there can only be one.
|
||||
if (Src1.isImm() || Src1.isFPImm() ||
|
||||
(Src1.isReg() && RI.isSGPRClass(MRI.getRegClass(Src1.getReg())))) {
|
||||
if (MI->isCommutable()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user