diff options
| author | Matthias Braun <matze@braunis.de> | 2014-12-16 04:03:38 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2014-12-16 04:03:38 +0000 |
| commit | 1aed6ffa35ae79e66eb3e9fa12960024ee9a6873 (patch) | |
| tree | 121b014f769a0cefccee0b41e689145dbf9cb028 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | a23008ad4b9f6a4e66a14e755c97fd2dd2c58975 (diff) | |
| download | bcm5719-llvm-1aed6ffa35ae79e66eb3e9fa12960024ee9a6873.tar.gz bcm5719-llvm-1aed6ffa35ae79e66eb3e9fa12960024ee9a6873.zip | |
LiveRangeCalc: Rewrite subrange calculation
This changes subrange calculation to calculate subranges sequentially
instead of in parallel. The code is easier to understand that way and
addresses the code review issues raised about LiveOutData being
hard to understand/needing more comments by removing them :)
llvm-svn: 224313
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index f48be4d5eb0..088ac4f7d8e 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -192,8 +192,7 @@ void LiveIntervals::computeVirtRegInterval(LiveInterval &LI) { assert(LRCalc && "LRCalc not initialized."); assert(LI.empty() && "Should only compute empty intervals."); LRCalc->reset(MF, getSlotIndexes(), DomTree, &getVNInfoAllocator()); - LRCalc->createDeadDefs(LI); - LRCalc->extendToUses(LI); + LRCalc->calculate(LI); computeDeadValues(LI, LI); } |

