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");
// 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.