From 0306b5ef07ecfa8ab949e989faa14f1eeb1ca4de Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Tue, 16 Aug 2016 14:02:42 +0000 Subject: [AArch64][GlobalISel] Select p0 G_FRAME_INDEX. And mark it as legal. llvm-svn: 278802 --- llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') 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'); -- cgit v1.2.3