diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-03 00:20:51 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-03 00:20:51 +0000 |
| commit | d58c8d12ab41fa67c3947f78629282f27d66d732 (patch) | |
| tree | 880ad5c8948a6c404186b39234572502eb37d968 /llvm/lib/CodeGen | |
| parent | edc103e253de8dd13e18337663cef1ea80ac2c17 (diff) | |
| download | bcm5719-llvm-d58c8d12ab41fa67c3947f78629282f27d66d732.tar.gz bcm5719-llvm-d58c8d12ab41fa67c3947f78629282f27d66d732.zip | |
Fix PHI handling in LiveIntervals::shrinkToUses().
We need to wait until we meet a PHIDef in its defining block before resurrecting
PHIKills in the predecessors.
This should unbreak the llvm-gcc-build-x86_64-darwin10-x-mingw32-x-armeabi bot.
llvm-svn: 126905
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 92829b1ea46..d3267299204 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -797,7 +797,7 @@ void LiveIntervals::shrinkToUses(LiveInterval *li) { (void)ExtVNI; assert(ExtVNI == VNI && "Unexpected existing value number"); // Is this a PHIDef we haven't seen before? - if (!VNI->isPHIDef() || !UsedPHIs.insert(VNI)) + if (!VNI->isPHIDef() || VNI->def != BlockStart || !UsedPHIs.insert(VNI)) continue; // The PHI is live, make sure the predecessors are live-out. for (MachineBasicBlock::const_pred_iterator PI = MBB->pred_begin(), |

