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/SelectionDAGBuilder.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/SelectionDAGBuilder.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index eea5dcc0cf4..b588d9b193f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5460,6 +5460,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { } case Intrinsic::annotation: case Intrinsic::ptr_annotation: + case Intrinsic::invariant_group_barrier: // Drop the intrinsic, but forward the value setValue(&I, getValue(I.getOperand(0))); return nullptr; |

