summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commitb4039f633cc14f798b6bafc14b29e8f4cf66c618 (patch)
treee1cedd42226c479786102bbcea2d46f519b8ceed /llvm/lib/Transforms
parentf2b681b4d81942a62d725a95553271afd1e86a42 (diff)
downloadbcm5719-llvm-b4039f633cc14f798b6bafc14b29e8f4cf66c618.tar.gz
bcm5719-llvm-b4039f633cc14f798b6bafc14b29e8f4cf66c618.zip
Make some intrinsics safe to speculatively execute.
llvm-svn: 147036
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index bf2cb49bdcd..4fdbaaef78f 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud