[llvm-commits] CVS: llvm/lib/Transforms/Scalar/Reg2Mem.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Nov 10 11:39:30 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
Reg2Mem.cpp updated: 1.2 -> 1.3
---
Log message:
the pain isn't gone unless the phinodes are spilled too
---
Diffs of the changes: (+2 -1)
Reg2Mem.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/Reg2Mem.cpp
diff -u llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.2 llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.3
--- llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.2 Thu Nov 10 11:35:34 2005
+++ llvm/lib/Transforms/Scalar/Reg2Mem.cpp Thu Nov 10 13:39:10 2005
@@ -38,7 +38,8 @@
BasicBlock* bb = i->getParent();
for(Value::use_iterator ii = i->use_begin(), ie = i->use_end();
ii != ie; ++ii)
- if (cast<Instruction>(*ii)->getParent() != bb)
+ if (cast<Instruction>(*ii)->getParent() != bb ||
+ isa<PHINode>(*ii))
return true;
return false;
}
More information about the llvm-commits
mailing list