From fa8a26f9dfebc5fa94bc2f7b9a0a59c3c2aa844c Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 8 Aug 2012 18:24:23 +0000 Subject: [PATCH] Heed -stress-early-ifcvt. llvm-svn: 161513 --- llvm/lib/CodeGen/EarlyIfConversion.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index 0db442a3bc6d..b7ad8a429e57 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -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); -- GitLab