diff options
author | Jeff Law <law@redhat.com> | 2015-07-24 23:45:42 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-07-24 23:45:42 -0600 |
commit | 8edd0f66d80adb3950a35fc0dc47af2355c73fc4 (patch) | |
tree | a75562053452d53e0094d28158099c6d6d69d68f /gcc/tree-ssa-threadupdate.c | |
parent | 64d7fb90be5b6aba8ae99e3510faec8d73df879e (diff) | |
download | gcc-8edd0f66d80adb3950a35fc0dc47af2355c73fc4.zip gcc-8edd0f66d80adb3950a35fc0dc47af2355c73fc4.tar.gz gcc-8edd0f66d80adb3950a35fc0dc47af2355c73fc4.tar.bz2 |
revert: re PR lto/66752 (spec2000 255.vortex performance compiled with GCC is ~20% lower than with CLANG)
Revert:
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: r226206
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r-- | gcc/tree-ssa-threadupdate.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 62937b4..31ddf25 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -2480,12 +2480,6 @@ duplicate_thread_path (edge entry, edge exit, /* Remove the last branch in the jump thread path. */ remove_ctrl_stmt_and_useless_edges (region_copy[n_region - 1], exit->dest); - - /* And fixup the flags on the single remaining edge. */ - edge fix_e = find_edge (region_copy[n_region - 1], exit->dest); - fix_e->flags &= ~(EDGE_TRUE_VALUE | EDGE_FALSE_VALUE | EDGE_ABNORMAL); - fix_e->flags |= EDGE_FALLTHRU; - edge e = make_edge (region_copy[n_region - 1], exit->dest, EDGE_FALLTHRU); if (e) { |