search for: deadcodeeliminationpass

Displaying 1 result from an estimated 1 matches for "deadcodeeliminationpass".

2015 Sep 13
3
RFC: faster simplifyInstructionsInBlock/SimplifyInstructions pass
...the start of the BB if a handle is invalidated. 2. Only insert operands to the worklist if they become unused after a dead instruction is removed, so we don’t have to visit them again in most cases. 3. Use a SmallSetVector 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<Instruc...