diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-10 19:39:09 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-10 19:39:09 +0000 |
commit | fa25e48412bc856dcb67996dc98594fa7b932e63 (patch) | |
tree | 22cc2f3916da46dbbe4036f8a4d14d888850f5e6 /lib/Transforms/Scalar/Reg2Mem.cpp | |
parent | 85eac0d9411c0a2005b2f4111528f276f672fee3 (diff) |
the pain isn't gone unless the phinodes are spilled too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reg2Mem.cpp')
-rw-r--r-- | lib/Transforms/Scalar/Reg2Mem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reg2Mem.cpp b/lib/Transforms/Scalar/Reg2Mem.cpp index a43da7a60a..b04c362a25 100644 --- a/lib/Transforms/Scalar/Reg2Mem.cpp +++ b/lib/Transforms/Scalar/Reg2Mem.cpp @@ -38,7 +38,8 @@ namespace { 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; } |