Heed -stress-early-ifcvt.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Aug 2012 18:24:23 +0000 (18:24 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Aug 2012 18:24:23 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/EarlyIfConversion.cpp

index 0db442a3bc6d4580780b6504b26a9ab0198bece2..b7ad8a429e572aeff2e94dbc80e30ef22c2ffcf4 100644 (file)
@@ -601,6 +601,10 @@ void EarlyIfConverter::invalidateTraces() {
 /// 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);