summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PHIElimination.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-19 07:04:55 +0000
committerChris Lattner <sabre@nondot.org>2004-07-19 07:04:55 +0000
commitaef6c2a3504171005a8e7285f3237cb173ea95e7 (patch)
treede7b93262704f6a0774e6e45084232d059e8089f /llvm/lib/CodeGen/PHIElimination.cpp
parenta74cf5a7d9e2154afc6b962ba419a1d9f0f65da2 (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud