summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 00:32:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 00:32:14 +0000
commitef784f01dd5981b95c634c3d2cf1c64dfce0fcc4 (patch)
tree685f8b06a5e7987b95929e50fddab2147ab190e3 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentc5afc9512bfe9d5c1695d064be940d7cf58e8e1d (diff)
downloadbcm5719-llvm-ef784f01dd5981b95c634c3d2cf1c64dfce0fcc4.tar.gz
bcm5719-llvm-ef784f01dd5981b95c634c3d2cf1c64dfce0fcc4.zip
bug 122:
- Minimize redundant isa<GlobalValue> usage llvm-svn: 14948
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index c3ed43d1f0c..cc28e54c374 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -211,8 +211,7 @@ static bool DominatesMergePoint(Value *V, BasicBlock *BB, bool AllowAggressive){
if (cast<LoadInst>(I)->isVolatile())
return false;
if (!isa<AllocaInst>(I->getOperand(0)) &&
- !isa<Constant>(I->getOperand(0)) &&
- !isa<GlobalValue>(I->getOperand(0)))
+ !isa<Constant>(I->getOperand(0)))
return false;
// Finally, we have to check to make sure there are no instructions
OpenPOWER on IntegriCloud