Commit adbcb155 authored by Justin Lebar's avatar Justin Lebar Committed by TensorFlower Gardener
Browse files

[XLA] Simplify trivial while loops.

If we can statically determine that a loop has a trip count of 0 or 1,
we can simplify it by removing the whole loop or removing the loop
infrastructure, leaving just the body behind.

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