diff options
author | Tim Northover <tnorthover@apple.com> | 2016-10-10 21:50:00 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-10-10 21:50:00 +0000 |
commit | bdf1624367261bf99c531e55f5bda1a297348b6b (patch) | |
tree | 2830cc74e94d4d77685dbf893ff957a0045917e3 /llvm/lib/CodeGen | |
parent | ad0acca54482a651abca79dc8ceb4a07df7e67aa (diff) | |
download | bcm5719-llvm-bdf1624367261bf99c531e55f5bda1a297348b6b.tar.gz bcm5719-llvm-bdf1624367261bf99c531e55f5bda1a297348b6b.zip |
GlobalISel: select G_GLOBAL_VALUE uses on AArch64.
llvm-svn: 283809
Diffstat (limited to 'llvm/lib/CodeGen')
-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'); |