summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-08-16 14:02:42 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-08-16 14:02:42 +0000
commit0306b5ef07ecfa8ab949e989faa14f1eeb1ca4de (patch)
tree8b283ad1ca889b485a1510b307f93b0cd4f6904e /llvm/lib/CodeGen
parent66d9dc2f7a8dc6f15030de08a3e8028e2d2071d2 (diff)
downloadbcm5719-llvm-0306b5ef07ecfa8ab949e989faa14f1eeb1ca4de.tar.gz
bcm5719-llvm-0306b5ef07ecfa8ab949e989faa14f1eeb1ca4de.zip
[AArch64][GlobalISel] Select p0 G_FRAME_INDEX.
And mark it as legal. llvm-svn: 278802
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp
index 5cb7e184a6c..d508d1ee623 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.
- if (MO.isImm())
+ // There's nothing to be done on immediates and frame indexes.
+ if (MO.isImm() || MO.isFI())
continue;
DEBUG(dbgs() << "Converting operand: " << MO << '\n');
OpenPOWER on IntegriCloud