diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp index 88ee457f4fb..b1dc9019ccc 100644 --- a/lib/CodeGen/LiveRangeEdit.cpp +++ b/lib/CodeGen/LiveRangeEdit.cpp @@ -59,6 +59,7 @@ void LiveRangeEdit::scanRemattable(LiveIntervals &lis, continue; checkRematerializable(VNI, DefMI, tii, aa); } + scannedRemattable_ = true; } bool LiveRangeEdit::anyRematerializable(LiveIntervals &lis,