mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-01 10:57:21 +00:00
Heed -stress-early-ifcvt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fac6aa076
commit
d6cf5f4224
@ -601,6 +601,10 @@ void EarlyIfConverter::invalidateTraces() {
|
|||||||
/// Return true if the conversion is a good idea.
|
/// Return true if the conversion is a good idea.
|
||||||
///
|
///
|
||||||
bool EarlyIfConverter::shouldConvertIf() {
|
bool EarlyIfConverter::shouldConvertIf() {
|
||||||
|
// Stress testing mode disables all cost considerations.
|
||||||
|
if (Stress)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (!MinInstr)
|
if (!MinInstr)
|
||||||
MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);
|
MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user