summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-06-23 16:15:37 +0000
committerTim Northover <tnorthover@apple.com>2017-06-23 16:15:37 +0000
commitb57bf2ac795f423446bf728ac6f33be010f77d28 (patch)
tree1f42ad7cafed6b0853df10ed84352a2bac65d253 /llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
parent506cfb7ab745c49841675e969b01ea2ec3707df2 (diff)
downloadbcm5719-llvm-b57bf2ac795f423446bf728ac6f33be010f77d28.tar.gz
bcm5719-llvm-b57bf2ac795f423446bf728ac6f33be010f77d28.zip
GlobalISel: convert buildSequence to use non-deprecated instructions.
G_SEQUENCE is going away soon so as a first step the MachineIRBuilder needs to be taught how to emulate it with alternatives. We use G_MERGE_VALUES where possible, and a sequence of G_INSERTs if not. llvm-svn: 306119
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 7fefbf90922..239bad2f535 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -582,7 +582,7 @@ bool IRTranslator::translateOverflowIntrinsic(const CallInst &CI, unsigned Op,
MIB.addUse(Zero);
}
- MIRBuilder.buildSequence(getOrCreateVReg(CI), Res, 0, Overflow, Width);
+ MIRBuilder.buildSequence(getOrCreateVReg(CI), {Res, Overflow}, {0, Width});
return true;
}
OpenPOWER on IntegriCloud