diff options
author | Owen Anderson <resistor@mac.com> | 2010-09-29 20:34:41 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-09-29 20:34:41 +0000 |
commit | 99c985c37dd45dd0fbd03863037d8e93153783e6 (patch) | |
tree | e33b2f94a3e47574c94f9f625e1f43253a4c4b60 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 77f965b75a02e6571a9af95f3bb75cc12d06e7ef (diff) | |
download | bcm5719-llvm-99c985c37dd45dd0fbd03863037d8e93153783e6.tar.gz bcm5719-llvm-99c985c37dd45dd0fbd03863037d8e93153783e6.zip |
Fix PR8247: JumpThreading can cause a block to become unreachable while still having predecessor, if it is part of a self-loop.
Because of this, we cannot use the Simplify* APIs, as they can assert-fail on unreachable code. Since it's not easy to determine
if a given threading will cause a block to become unreachable, simply defer simplifying simplification to later InstCombine and/or
DCE passes.
llvm-svn: 115082
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions