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

[XLA] Simplify A*C + B*C => (A+B)*C when safe.

"Safe" means:

 - A, B, and C are integers, OR
 - A, B, and C are floating-point types, and C is a power of 2 (including
   2^(-k)).

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