Fixes infinite loop in ADCE
authorAlan Baker <alanbaker@google.com>
Thu, 18 Jan 2018 20:44:00 +0000 (15:44 -0500)
committerAlan Baker <alanbaker@google.com>
Fri, 19 Jan 2018 16:08:46 +0000 (11:08 -0500)
commit3b780db7f8fe81fc0f7446f32f4f604f3cf2485d
tree641b9a99b000ffd18d29d9b4b9d29be7b9977b05
parentcf3b2a58c417ed86a52191cf1924006e41e963c0
Fixes infinite loop in ADCE

* Addresses how breaks are indentified to prevent infinite loops when
back to back loop share a merge and header
* Added test to catch the bug
source/opt/aggressive_dead_code_elim_pass.cpp
source/opt/aggressive_dead_code_elim_pass.h
test/opt/aggressive_dead_code_elim_test.cpp