re PR tree-optimization/71335 (wrong code at -O2 and -O3 in 32-bit and 64-bit modes...
authorJeff Law <law@redhat.com>
Fri, 10 Jun 2016 16:23:06 +0000 (10:23 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 10 Jun 2016 16:23:06 +0000 (10:23 -0600)
commitad071b2b638eac3038dbd6f12dea7c21fbbfe863
tree57be0b488c2eba0366c07cbc9967b5f47936899a
parent66b4d2611346c270f63a49b778bef0be28f95ccb
re PR tree-optimization/71335 (wrong code at -O2 and -O3 in 32-bit and 64-bit modes on x86_64-linux-gnu)

PR tree-optimization/71335
* tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
zero length paths here.
(convert_and_register_jump_thread_path): Remove hacks related to
duplicated blocks in the jump thread path.
(fsm_find_control_statement_thread_paths): Avoid putting the same
block on the thread path twice, but ensure the thread path is
unchanged from the caller's point of view.

PR tree-optimization/71335
* gcc.c-torture/execute/pr71335.c: New test.

From-SVN: r237312
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr71335.c [new file with mode: 0644]
gcc/tree-ssa-threadbackward.c