summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMCallLowering.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-03-06 23:50:28 +0000
committerTim Northover <tnorthover@apple.com>2017-03-06 23:50:28 +0000
commitc2c545b8f7693a77fdc37e8c19ec6229c1da5ef8 (patch)
tree71cfe4b8857020beefd04394f75bec09bd9f2e10 /llvm/lib/Target/ARM/ARMCallLowering.cpp
parentef23e9574ed4121e491061e22521f5f8597c3687 (diff)
downloadbcm5719-llvm-c2c545b8f7693a77fdc37e8c19ec6229c1da5ef8.tar.gz
bcm5719-llvm-c2c545b8f7693a77fdc37e8c19ec6229c1da5ef8.zip
GlobalISel: restrict G_EXTRACT instruction to just one operand.
A bit more painful than G_INSERT because it was more widely used, but this should simplify the handling of extract operations in most locations. llvm-svn: 297100
Diffstat (limited to 'llvm/lib/Target/ARM/ARMCallLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMCallLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMCallLowering.cpp b/llvm/lib/Target/ARM/ARMCallLowering.cpp
index e034abe4222..01239e8a74c 100644
--- a/llvm/lib/Target/ARM/ARMCallLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMCallLowering.cpp
@@ -118,8 +118,8 @@ struct OutgoingValueHandler : public CallLowering::ValueHandler {
unsigned NewRegs[] = {MRI.createGenericVirtualRegister(LLT::scalar(32)),
MRI.createGenericVirtualRegister(LLT::scalar(32))};
-
- MIRBuilder.buildExtract(NewRegs, {0, 32}, Arg.Reg);
+ MIRBuilder.buildExtract(NewRegs[0], Arg.Reg, 0);
+ MIRBuilder.buildExtract(NewRegs[1], Arg.Reg, 32);
bool IsLittle = MIRBuilder.getMF().getSubtarget<ARMSubtarget>().isLittle();
if (!IsLittle)
OpenPOWER on IntegriCloud