[llvm-commits] CVS: llvm/lib/Transforms/Scalar/GCSE.cpp
LLVM
llvm at cs.uiuc.edu
Sun Jul 18 01:32:20 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
GCSE.cpp updated: 1.41 -> 1.42
---
Log message:
Expand the scope to include global values because they are now constants
too.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.41 llvm/lib/Transforms/Scalar/GCSE.cpp:1.42
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.41 Sat Jul 17 19:28:47 2004
+++ llvm/lib/Transforms/Scalar/GCSE.cpp Sun Jul 18 03:32:10 2004
@@ -185,7 +185,7 @@
// If we are not replacing the instruction with a constant, we cannot do
// anything special.
- if (!isa<Constant>(V) || isa<GlobalValue>(V)) {
+ if (!isa<Constant>(V)) {
I->replaceAllUsesWith(V);
if (InvokeInst *II = dyn_cast<InvokeInst>(I)) {
More information about the llvm-commits
mailing list