mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Revert r327721 "This patch fixes the invalid usage of OptSize in Machine Combiner."
It causes asserts when compiling Chromium on Win32 with optimizations. We compile many things with -Os. llvm-svn: 327733
This commit is contained in:
parent
b48d381759
commit
2e29a2d86f
@ -407,8 +407,8 @@ bool MachineCombiner::preservesResourceLen(
|
||||
/// \returns true when new instruction sequence should be generated
|
||||
/// independent if it lengthens critical path or not
|
||||
bool MachineCombiner::doSubstitute(unsigned NewSize, unsigned OldSize) {
|
||||
if (OptSize) // First of all check OptSize option
|
||||
return (NewSize < OldSize); // Only substitute if new size < old size
|
||||
if (OptSize && (NewSize < OldSize))
|
||||
return true;
|
||||
if (!TSchedModel.hasInstrSchedModelOrItineraries())
|
||||
return true;
|
||||
return false;
|
||||
@ -588,7 +588,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
||||
// Eagerly stop after the first pattern fires.
|
||||
Changed = true;
|
||||
break;
|
||||
} else if (!OptSize || (NewInstCount <= OldInstCount)) {
|
||||
} else {
|
||||
// For big basic blocks, we only compute the full trace the first time
|
||||
// we hit this. We do not invalidate the trace, but instead update the
|
||||
// instruction depths incrementally.
|
||||
|
Loading…
Reference in New Issue
Block a user