re PR lto/66752 (spec2000 255.vortex performance compiled with GCC is ~20% lower...
commitd37f946ace661906c628b482a0f9d5bfb40d3064
authorJeff Law <law@redhat.com>
Thu, 23 Jul 2015 20:42:15 +0000 (23 14:42 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 23 Jul 2015 20:42:15 +0000 (23 14:42 -0600)
treef793f0f4fb8a17c983a108854df187470be2fa61
parent0f2be732d964ef89eb268114e4dd8d00130aa29b
re PR lto/66752 (spec2000 255.vortex performance compiled with GCC is ~20% lower than with CLANG)

PR lto/66752
* tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
unable to find X NE 0 in the tables, return X as the simplified
condition.
(fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
to VISISTED_BBS.  */
* tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
after removing the control flow statement and unnecessary edges.

testsuite/
PR lto/66752
* gcc.dg/tree-ssa/pr66752-2.c: New test.
* gcc.dg/torture/pr66752-1.c: New test
* g++.dg/torture/pr66752-2.C: New test.

From-SVN: r226125
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr66752-2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr66752-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr66752-3.c [new file with mode: 0644]
gcc/tree-ssa-threadedge.c
gcc/tree-ssa-threadupdate.c