diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-25 15:08:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-25 15:08:37 +0000 |
commit | 394ec3ab5a95f1755a4e455233aa7a430fa854b7 (patch) | |
tree | 6185aa28a3e73fc235108379763f49b7f493063f /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | ce5206b4f2398abcce67141cb7332ab8f7a1cc8e (diff) | |
download | bcm5719-llvm-394ec3ab5a95f1755a4e455233aa7a430fa854b7.tar.gz bcm5719-llvm-394ec3ab5a95f1755a4e455233aa7a430fa854b7.zip |
Disable the new aggressive remat logic introduced in 54000; it causes some
regressions, such as PR2595. Also, there is a significant code-quality
issue in SPEC 464.h264ref and a few others.
llvm-svn: 54014
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index adc1e207b50..09557851be4 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -47,6 +47,8 @@ static cl::opt<bool> SplitAtBB("split-intervals-at-bb", static cl::opt<int> SplitLimit("split-limit", cl::init(-1), cl::Hidden); +static cl::opt<bool> EnableAggressiveRemat("aggressive-remat", cl::Hidden); + STATISTIC(numIntervals, "Number of original intervals"); STATISTIC(numIntervalsAfter, "Number of intervals after coalescing"); STATISTIC(numFolds , "Number of loads/stores folded into instructions"); @@ -797,6 +799,8 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li, // rules. if (!MI->getDesc().isRematerializable() || !tii_->isTriviallyReMaterializable(MI)) { + if (!EnableAggressiveRemat) + return false; // If the instruction access memory but the memoperands have been lost, // we can't analyze it. |