diff options
| author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-07-29 16:56:16 +0000 |
|---|---|---|
| committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-07-29 16:56:16 +0000 |
| commit | 7adfac56b3345f9815663f24c6ca5e5a68bfae4e (patch) | |
| tree | 3ad1520812a84046f28fcccf526b99ebd802d16c /llvm/lib/CodeGen | |
| parent | 5c98b60ecc5580e53e191cbe6c7a11bf139687cb (diff) | |
| download | bcm5719-llvm-7adfac56b3345f9815663f24c6ca5e5a68bfae4e.tar.gz bcm5719-llvm-7adfac56b3345f9815663f24c6ca5e5a68bfae4e.zip | |
[AArch64][GlobalISel] Select G_LOAD/G_STORE.
Mostly straightforward as we ignore addressing modes and just
use the base + unsigned immediate offset (always 0) variants.
This currently fails to select extloads because we have yet to
agree on a representation.
llvm-svn: 277171
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp index 07a4b3d7170..5cb7e184a6c 100644 --- a/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp +++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelector.cpp @@ -31,9 +31,13 @@ bool InstructionSelector::constrainSelectedInstRegOperands( for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { MachineOperand &MO = I.getOperand(OpI); - DEBUG(dbgs() << "Converting operand: " << MO << '\n'); - assert(MO.isReg() && "Unsupported binop non-reg operand"); + // There's nothing to be done on immediates. + if (MO.isImm()) + continue; + + DEBUG(dbgs() << "Converting operand: " << MO << '\n'); + assert(MO.isReg() && "Unsupported non-reg operand"); const TargetRegisterClass *RC = TII.getRegClass(I.getDesc(), OpI, &TRI, MF); assert(RC && "Selected inst should have regclass operand"); |

