Safeguard DBG_VALUE handling. Unbreaks the ASAN buildbot.
[oota-llvm.git] / lib / CodeGen / EarlyIfConversion.cpp
index fc767362be75a334958e2bed51f0d57c2554d76d..5447df09cbb27fff34c34f1bee0dd3f9d0789cb4 100644 (file)
@@ -677,10 +677,6 @@ bool EarlyIfConverter::shouldConvertIf() {
   if (Stress)
     return true;
 
-  // Without a scheduling model, we can't make decisions.
-  if (!SchedModel->hasInstrSchedModel())
-    return false;
-
   if (!MinInstr)
     MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);