projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fac6aa
)
Heed -stress-early-ifcvt.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Wed, 8 Aug 2012 18:24:23 +0000
(18:24 +0000)
committer
Jakob 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/EarlyIfConversion.cpp
b/lib/CodeGen/EarlyIfConversion.cpp
index 0db442a3bc6d4580780b6504b26a9ab0198bece2..b7ad8a429e572aeff2e94dbc80e30ef22c2ffcf4 100644
(file)
--- 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);