[llvm-commits] [llvm] r161513 - /llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Aug 8 11:24:23 PDT 2012
Author: stoklund
Date: Wed Aug 8 13:24:23 2012
New Revision: 161513
URL: http://llvm.org/viewvc/llvm-project?rev=161513&view=rev
Log:
Heed -stress-early-ifcvt.
Modified:
llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp
Modified: llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp?rev=161513&r1=161512&r2=161513&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp (original)
+++ llvm/trunk/lib/CodeGen/EarlyIfConversion.cpp Wed Aug 8 13:24:23 2012
@@ -601,6 +601,10 @@
/// 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);
More information about the llvm-commits
mailing list