diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-19 07:04:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-19 07:04:55 +0000 |
commit | aef6c2a3504171005a8e7285f3237cb173ea95e7 (patch) | |
tree | de7b93262704f6a0774e6e45084232d059e8089f /llvm/lib/CodeGen/PHIElimination.cpp | |
parent | a74cf5a7d9e2154afc6b962ba419a1d9f0f65da2 (diff) | |
download | bcm5719-llvm-aef6c2a3504171005a8e7285f3237cb173ea95e7.tar.gz bcm5719-llvm-aef6c2a3504171005a8e7285f3237cb173ea95e7.zip |
There is no need to store the MBB along with the MI any more, we can now
ask instructions for their parent.
llvm-svn: 14998
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 4b6723797ac..3c75f86331e 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -235,7 +235,7 @@ bool PNE::EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB) { // Is it killed in this successor? for (unsigned i = 0, e = InRegVI.Kills.size(); i != e; ++i) - if (InRegVI.Kills[i].first == SuccMBB) { + if (InRegVI.Kills[i]->getParent() == SuccMBB) { ValueIsLive = true; break; } |