HomePhabricator

Add multi-level DCE pass.

Authored by silvas on Nov 20 2019, 11:48 AM.

Description

Add multi-level DCE pass.

This is a simple multi-level DCE pass that operates pretty generically on
the IR. Its key feature compared to the existing peephole dead op folding
that happens during canonicalization is being able to delete recursively
dead cycles of the use-def graph, including block arguments.

PiperOrigin-RevId: 281568202

Event Timeline

A. Unique TensorFlower <gardener@tensorflow.org> committed rGe4f83c6c2690: Add multi-level DCE pass. (authored by silvas).Nov 20 2019, 12:55 PM