Fixes in CCP for #1228
authorAlan Baker <alanbaker@google.com>
Thu, 25 Jan 2018 18:45:21 +0000 (10:45 -0800)
committerAlan Baker <alanbaker@google.com>
Mon, 29 Jan 2018 20:12:05 +0000 (15:12 -0500)
commit1b46f7ecad32f99e0b28702505a192d7bf680bd7
treeeac9fee94c1b43868c3d59c2b508baa8b910e59e
parent6018de81de5114e906a0098ac04a7cbc95aff500
Fixes in CCP for #1228

* Forces traversal of phis if the def has changed to varying
* Mark a phi as varying if all incoming values are varying
* added a test to catch the bug
source/opt/ccp_pass.cpp
source/opt/propagator.cpp
source/opt/propagator.h
test/opt/ccp_test.cpp