[llvm-commits] CVS: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 4 17:57:56 PDT 2005
Changes in directory llvm/lib/Transforms/Utils:
PromoteMemoryToRegister.cpp updated: 1.79 -> 1.80
---
Log message:
This code can handle non-dominating instructions
---
Diffs of the changes: (+1 -1)
PromoteMemoryToRegister.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.79 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.80
--- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.79 Thu Aug 4 18:24:19 2005
+++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Thu Aug 4 19:57:45 2005
@@ -347,7 +347,7 @@
PHINode *SomePHI = 0;
for (unsigned i = 0, e = PNs.size(); i != e; ++i)
if (PNs[i]) {
- if (Value *V = PNs[i]->hasConstantValue()) {
+ if (Value *V = PNs[i]->hasConstantValue(true)) {
if (!isa<Instruction>(V) || dominates(cast<Instruction>(V), PNs[i])) {
if (AST && isa<PointerType>(PNs[i]->getType()))
AST->deleteValue(PNs[i]);
More information about the llvm-commits
mailing list