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 tree-optimization/48702] [4.6 Regression] optimization regression with gcc-4.6 on x86_64-unknown-linux-gnu


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

--- Comment #29 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-06 10:13:27 UTC ---
Author: rguenth
Date: Mon Jun  6 10:13:23 2011
New Revision: 174688

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174688
Log:
2011-06-06  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/48702
    * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
    only when we know the base address is within bounds.
    * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
    assume the base address of TARGET_MEM_REFs is in bounds.
    (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.

    * gcc.dg/torture/pr48702.c: New testcase.

    Backport from mainline
    2011-05-31  Jakub Jelinek  <jakub@redhat.com>

    PR rtl-optimization/49235
    * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
    (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.

    * gcc.dg/pr49235.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr49235.c
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr48702.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-ssa-address.c
    branches/gcc-4_6-branch/gcc/tree-ssa-alias.c


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