diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:32:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:32:14 +0000 |
commit | 460f16c6253928519689e882a4dbb7f236f33294 (patch) | |
tree | 47aeacdbd2d4e9f7a4bb5484b2a836f5b4c0e791 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 21cb67e16ae4741ba7b24848db6913047876c4bc (diff) |
bug 122:
- Minimize redundant isa<GlobalValue> usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index c3ed43d1f0..cc28e54c37 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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 |