Commit 4613ceab authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Improve performance of HloDCE

Previously we performed a DFS traversal to find all dead roots in the
graph but the same result can be achieved just by looking at the user
count because we don't remove any instruction with control predecessors
or successors (due to HloComputation::IsRemovable).

PiperOrigin-RevId: 201663343
parent ebf8d59e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment