Displaying 1 result from an estimated 1 matches for "simplifyanddceinstruct".
2015 Sep 13
3
RFC: faster simplifyInstructionsInBlock/SimplifyInstructions pass
...ctor to track the worklist.
4. Instead of pre-initting the SmallSetVector like in DeadCodeEliminationPass, only put things into the worklist if they have to be revisited after the first run-through. This minimizes how much the actual SmallSetVector gets used, which saves a lot of time.
static bool simplifyAndDCEInstruction(Instruction *I,
SmallSetVector<Instruction *, 16> &WorkList,
const DataLayout &DL) {
if (isInstructionTriviallyDead(I, nullptr)) {
// Loop over all of the values that the instruction uses. If there ar...