diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-11-07 16:47:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-11-07 16:47:20 +0000 |
commit | 857efb0880dbfbb0f52f401f18f9c3717f6cc276 (patch) | |
tree | 92b07cd2cc0fa9c8eadf213431fe1fe59e40a68f /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 314cbf7a3bc173921756d540e84802f585bbf1de (diff) | |
download | bcm5719-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.cpp | 1 |
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) |