git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161513
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Return true if the conversion is a good idea.
///
bool EarlyIfConverter::shouldConvertIf() {
/// Return true if the conversion is a good idea.
///
bool EarlyIfConverter::shouldConvertIf() {
+ // Stress testing mode disables all cost considerations.
+ if (Stress)
+ return true;
+
if (!MinInstr)
MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);
if (!MinInstr)
MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);