CIRCT
20.0.0git
|
Functions | |
void | pruneUnusedOps (Operation *initialOp, Reduction &reduction) |
Starting at the given op , traverse through it and its operands and erase operations that have no more uses. More... | |
void circt::reduce::pruneUnusedOps | ( | Operation * | initialOp, |
Reduction & | reduction | ||
) |
Starting at the given op
, traverse through it and its operands and erase operations that have no more uses.
Definition at line 16 of file ReductionUtils.cpp.
References circt::Reduction::notifyOpErased().
Referenced by FIRRTLOperandForwarder< OpNum >::rewrite(), FIRRTLConstantifier::rewrite(), ConnectInvalidator::rewrite(), ConnectSourceOperandForwarder< OpNum >::rewrite(), HWOperandForwarder< OpNum >::rewrite(), HWConstantifier::rewrite(), and OperationPruner::rewrite().