Displaying 1 result from an estimated 1 matches for "simplifyanddcefunction".
2015 Sep 13
3
RFC: faster simplifyInstructionsInBlock/SimplifyInstructions pass
...here the instruction is not wired into any
// parent block.
if (I->getParent())
I->eraseFromParent();
return true;
}
return false;
}
// A faster version of SimplifyInstructionsInBlock, designed for a whole
// function. Modelled after DeadCodeEliminationPass.
static bool simplifyAndDCEFunction(Function &F) {
bool MadeChange = false;
const DataLayout &DL = F.getParent()->getDataLayout();
SmallSetVector<Instruction *, 16> WorkList;
// Iterate over the original function, only adding insts to the worklist
// if they actually need to be revisited. This avoids havin...