diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-08 18:24:23 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-08 18:24:23 +0000 |
commit | d6cf5f4224d0e600ebb810f1da09aabaeea7e6f3 (patch) | |
tree | 6f16fda83378d5ba1e61296140fa0a73ccb90901 /lib/CodeGen | |
parent | 0fac6aa076450f5474feb2ec697b7d63d33fa567 (diff) | |
download | external_llvm-d6cf5f4224d0e600ebb810f1da09aabaeea7e6f3.zip external_llvm-d6cf5f4224d0e600ebb810f1da09aabaeea7e6f3.tar.gz external_llvm-d6cf5f4224d0e600ebb810f1da09aabaeea7e6f3.tar.bz2 |
Heed -stress-early-ifcvt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/EarlyIfConversion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/EarlyIfConversion.cpp b/lib/CodeGen/EarlyIfConversion.cpp index 0db442a..b7ad8a4 100644 --- a/lib/CodeGen/EarlyIfConversion.cpp +++ b/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); |