summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-11-07 16:47:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-11-07 16:47:20 +0000
commit857efb0880dbfbb0f52f401f18f9c3717f6cc276 (patch)
tree92b07cd2cc0fa9c8eadf213431fe1fe59e40a68f /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent314cbf7a3bc173921756d540e84802f585bbf1de (diff)
downloadbcm5719-llvm-857efb0880dbfbb0f52f401f18f9c3717f6cc276.tar.gz
bcm5719-llvm-857efb0880dbfbb0f52f401f18f9c3717f6cc276.zip
Add -O0 support for @llvm.invariant.group.barrier by discarding it if it gets to ISel.
Differential Revision: https://reviews.llvm.org/D26292 llvm-svn: 286119
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 4ca22497703..452bb059494 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1216,6 +1216,7 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
updateValueMap(II, ResultReg);
return true;
}
+ case Intrinsic::invariant_group_barrier:
case Intrinsic::expect: {
unsigned ResultReg = getRegForValue(II->getArgOperand(0));
if (!ResultReg)
OpenPOWER on IntegriCloud