aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PHIElimination.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-01 04:29:47 +0000
committerChris Lattner <sabre@nondot.org>2004-07-01 04:29:47 +0000
commit8ba9771549bcff6109ad45ff3944a1b6c3c54b46 (patch)
tree2842a08ba2a2e3eec15e8a9e3c59d8be0fd4e231 /lib/CodeGen/PHIElimination.cpp
parenta5287a63762fbf0976e333fb7787ec135fdc2061 (diff)
Start using MBB numbers directly instead of going through the live variables
map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PHIElimination.cpp')
-rw-r--r--lib/CodeGen/PHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp
index 895dadde5c..40bf5883dd 100644
--- a/lib/CodeGen/PHIElimination.cpp
+++ b/lib/CodeGen/PHIElimination.cpp
@@ -226,7 +226,7 @@ bool PNE::EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB) {
MachineBasicBlock *SuccMBB = *SI;
// Is it alive in this successor?
- unsigned SuccIdx = LV->getMachineBasicBlockIndex(SuccMBB);
+ unsigned SuccIdx = SuccMBB->getNumber();
if (SuccIdx < InRegVI.AliveBlocks.size() &&
InRegVI.AliveBlocks[SuccIdx]) {
ValueIsLive = true;