]> gcc.gnu.org Git - gcc.git/commit
re PR rtl-optimization/39794 (Miscompile with -O2 -funroll-loops)
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Apr 2009 06:58:02 +0000 (08:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Apr 2009 06:58:02 +0000 (08:58 +0200)
commit6216f94e37db8de5a846c5945f4aa5f4e32aaedf
treeb915c002276568ad8d30cd5e3340544d674fc103
parent6de7a512f0e76268d8ff69e51be80527c58d854b
re PR rtl-optimization/39794 (Miscompile with -O2 -funroll-loops)

PR rtl-optimization/39794
* alias.c (canon_true_dependence): Add x_addr argument.
* rtl.h (canon_true_dependence): Adjust prototype.
* cse.c (check_dependence): Adjust canon_true_dependence callers.
* cselib.c (cselib_invalidate_mem): Likewise.
* gcse.c (compute_transp): Likewise.
* dse.c (scan_reads_nospill): Likewise.
(record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
canon_base_addr of the group, plus optional offset.
(struct group_info): Rename canon_base_mem to
canon_base_addr.
(get_group_info): Set canon_base_addr to canon_rtx of base, not
canon_rtx of base_mem.

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

From-SVN: r146669
gcc/ChangeLog
gcc/alias.c
gcc/cse.c
gcc/cselib.c
gcc/dse.c
gcc/gcse.c
gcc/rtl.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr39794.c [new file with mode: 0644]
This page took 0.059091 seconds and 5 git commands to generate.