From 8369687576b062be74c941a4a90dbabb0828e028 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Wed, 21 Dec 2011 05:52:02 +0000 Subject: Make some intrinsics safe to speculatively execute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147036 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Transforms/Utils') 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; -- cgit v1.1