Preserve analysies in the simplification pass
authorSteven Perron <stevenperron@google.com>
Wed, 21 Feb 2018 19:35:10 +0000 (14:35 -0500)
committerSteven Perron <stevenperron@google.com>
Thu, 22 Feb 2018 21:06:30 +0000 (16:06 -0500)
commit3f19c2031a8684dce8d28de770d1a7e44c30c0b1
treef807c04069c51e3610b6ff0488fb3384ebea68f8
parent432dc40412d2f557e4c49867c9481adf7679d496
Preserve analysies in the simplification pass

Fixes a bug at the same time.  In `UpdateDefUse`, if the definition
already exists, we are not suppose to analyse it again.  When you do
the entries for the definition are deleted, and we don't want that.
The check for this was wrong.
source/opt/def_use_manager.cpp
source/opt/simplification_pass.h
test/opt/def_use_test.cpp