diff options
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp index 9d2630f2fca..9149864817c 100644 --- a/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp +++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp @@ -32,8 +32,8 @@ bool InstructionSelector::constrainSelectedInstRegOperands( for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { MachineOperand &MO = I.getOperand(OpI); - // There's nothing to be done on immediates and frame indexes. - if (MO.isImm() || MO.isFI()) + // There's nothing to be done on non-register operands. + if (!MO.isReg()) continue; DEBUG(dbgs() << "Converting operand: " << MO << '\n'); |