Skip to content
Snippets Groups Projects
Commit fa8a26f9 authored by Jakob Stoklund Olesen's avatar Jakob Stoklund Olesen
Browse files

Heed -stress-early-ifcvt.

llvm-svn: 161513
parent d86b3bdb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment