forked from OSchip/llvm-project
parent
273ce56d7a
commit
57c6594e97
|
@ -256,6 +256,10 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
Tokens.pop_back();
|
Tokens.pop_back();
|
||||||
BBInfo &BBI = Token->BBI;
|
BBInfo &BBI = Token->BBI;
|
||||||
IfcvtKind Kind = Token->Kind;
|
IfcvtKind Kind = Token->Kind;
|
||||||
|
unsigned NumDups = Token->NumDups;
|
||||||
|
unsigned NumDups2 = Token->NumDups;
|
||||||
|
|
||||||
|
delete Token;
|
||||||
|
|
||||||
// If the block has been evicted out of the queue or it has already been
|
// If the block has been evicted out of the queue or it has already been
|
||||||
// marked dead (due to it being predicated), then skip it.
|
// marked dead (due to it being predicated), then skip it.
|
||||||
|
@ -323,7 +327,7 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
DOUT << "Ifcvt (Diamond): BB#" << BBI.BB->getNumber() << " (T:"
|
DOUT << "Ifcvt (Diamond): BB#" << BBI.BB->getNumber() << " (T:"
|
||||||
<< BBI.TrueBB->getNumber() << ",F:"
|
<< BBI.TrueBB->getNumber() << ",F:"
|
||||||
<< BBI.FalseBB->getNumber() << ") ";
|
<< BBI.FalseBB->getNumber() << ") ";
|
||||||
RetVal = IfConvertDiamond(BBI, Kind, Token->NumDups, Token->NumDups2);
|
RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2);
|
||||||
DOUT << (RetVal ? "succeeded!" : "failed!") << "\n";
|
DOUT << (RetVal ? "succeeded!" : "failed!") << "\n";
|
||||||
if (RetVal) NumDiamonds++;
|
if (RetVal) NumDiamonds++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue