projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
309c616
)
Mark merged-in VNInfo's as being PHIKilled.
author
Owen Anderson
<resistor@mac.com>
Tue, 30 Sep 2008 23:58:47 +0000
(23:58 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 30 Sep 2008 23:58:47 +0000
(23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56893
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/StrongPHIElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/StrongPHIElimination.cpp
b/lib/CodeGen/StrongPHIElimination.cpp
index f6aa44e2346d80a51466d1bce42a85d8f99f2232..c277d56f7c970983dc5670989737aabe995ac8ac 100644
(file)
--- a/
lib/CodeGen/StrongPHIElimination.cpp
+++ b/
lib/CodeGen/StrongPHIElimination.cpp
@@
-977,6
+977,11
@@
bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
}
}
+ LiveInterval& Int = LI.getOrCreateInterval(I->first);
+ const LiveRange* LR =
+ Int.getLiveRangeContaining(LI.getMBBEndIdx(SI->second));
+ LR->valno->hasPHIKill = true;
+
I->second.erase(SI->first);
}