commit | 8369687576b062be74c941a4a90dbabb0828e028 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Wed Dec 21 05:52:02 2011 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Wed Dec 21 05:52:02 2011 +0000 |
tree | 6b4fb2abcbf46abecd95f8b509252a8dd8e7e093 | |
parent | 1e33e8b715299dd014931be388cf593d6a55dc69 [diff] |
Make some intrinsics safe to speculatively execute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147036 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index bf2cb49..4fdbaae 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -293,6 +293,7 @@ Cost = 1; break; // These are all cheap and non-trapping instructions. + case Instruction::Call: case Instruction::Select: Cost = 2; break;