[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
LLVM
llvm at cs.uiuc.edu
Sat Jul 17 17:32:24 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.46 -> 1.47
---
Log message:
bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Minimize redundant isa<GlobalValue> usage
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.46 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.47
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.46 Wed Jul 14 21:06:12 2004
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Sat Jul 17 19:32:14 2004
@@ -211,8 +211,7 @@
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
More information about the llvm-commits
mailing list