aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-12-21 05:52:02 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-12-21 05:52:02 +0000
commit8369687576b062be74c941a4a90dbabb0828e028 (patch)
tree6b4fb2abcbf46abecd95f8b509252a8dd8e7e093 /lib/Transforms/Utils
parent1e33e8b715299dd014931be388cf593d6a55dc69 (diff)
downloadexternal_llvm-8369687576b062be74c941a4a90dbabb0828e028.zip
external_llvm-8369687576b062be74c941a4a90dbabb0828e028.tar.gz
external_llvm-8369687576b062be74c941a4a90dbabb0828e028.tar.bz2
Make some intrinsics safe to speculatively execute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp1
1 files changed, 1 insertions, 0 deletions
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 @@ static bool DominatesMergePoint(Value *V, BasicBlock *BB,
Cost = 1;
break; // These are all cheap and non-trapping instructions.
+ case Instruction::Call:
case Instruction::Select:
Cost = 2;
break;