Reenable a basic SSA DAG builder optimization.

Jakob fixed ProcessImplicifDefs in r159149.

llvm-svn: 160910
This commit is contained in:
Andrew Trick 2012-07-28 01:48:15 +00:00
parent 584745a692
commit 940534371b
1 changed files with 4 additions and 5 deletions

View File

@ -411,12 +411,11 @@ void ScheduleDAGInstrs::addVRegDefDeps(SUnit *SU, unsigned OperIdx) {
const MachineInstr *MI = SU->getInstr();
unsigned Reg = MI->getOperand(OperIdx).getReg();
// SSA defs do not have output/anti dependencies.
// Singly defined vregs do not have output/anti dependencies.
// The current operand is a def, so we have at least one.
//
// FIXME: This optimization is disabled pending PR13112.
//if (llvm::next(MRI.def_begin(Reg)) == MRI.def_end())
// return;
// Check here if there are any others...
if (llvm::next(MRI.def_begin(Reg)) == MRI.def_end())
return;
// Add output dependence to the next nearest def of this vreg.
//