This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/23488] [4.1/4.2/4.3 Regression] GCSE load PRE does not work with non sets (or missing load PRE with plain decls)



------- Comment #22 from dberlin at gcc dot gnu dot org  2007-07-07 22:23 -------
Subject: Bug 23488

Author: dberlin
Date: Sat Jul  7 22:23:26 2007
New Revision: 126449

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126449
Log:
2007-07-07  Daniel Berlin  <dberlin@dberlin.org>

        Revert (note the sccvn portions are *not* reverted)
        2007-07-06  Daniel Berlin  <dberlin@dberlin.org>

        Fix PR tree-optimization/23488

        * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
        handles.
        * tree-flow-inline.h (get_value_handle): Ditto.
        * tree-ssa-pre.c (decl_vh_map): New.
        (decl_node_pool): New.
        (can_value_number_operation): Support DECL_P.
        (can_PRE_operation): Ditto.
        (create_expression_by_pieces): Ditto.
        (find_existing_value_expr): Modify to differnetiate between
        addressing and top level.
        (create_value_handle_for_expr): Handle DECL's.
        (poolify_tree): Ditto.
        (make_values_for_phi): Don't insert into PHI_GEN during FRE.
        (make_values_for_stmt): Handle DECL's properly.
        (init_pre): Reorg to not init useless things during FRE.
        (fini_pre): Ditto.
        * tree-flow.h: Include pointer-set.h.
        (decl_vh_map): Declare.
        * Makefile.in (TREE_FLOW_H): Add pointer-set.h


Removed:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-17.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-flow-inline.h
    trunk/gcc/tree-flow.h
    trunk/gcc/tree-ssa-pre.c
    trunk/gcc/tree-vn.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23488


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]