Preserve analysies in the simplification pass
authorSteven Perron <stevenperron@google.com>
Tue, 20 Feb 2018 16:46:57 +0000 (11:46 -0500)
committerSteven Perron <31666470+s-perron@users.noreply.github.com>
Tue, 20 Feb 2018 19:45:08 +0000 (14:45 -0500)
commitec3bbf093e686964d464e3a7c70e691d98ed82c1
tree6db230c58f8ca68f437c9d0d26f86af1eb56cc97
parent6c75050136a2657dac4501ca16d447852fc69e5f
Preserve analysies in the simplification pass

Building the def-use chains is very expensive, so we do not want to
invalidate them it if is not necessary.  At the moment, it seems like
most optimizatoins are good at not invalidating the def-use chains, but
simplification does.

This PR get the simlification pass to keep the analysies valid.

Contributes to #1328.
source/opt/simplification_pass.h