This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/73434] [6/7 Regression] Wrong code with casting, branches and aliasing
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2016 09:56:32 +0000
- Subject: [Bug tree-optimization/73434] [6/7 Regression] Wrong code with casting, branches and aliasing
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-73434-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=73434
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Aug 15 09:56:00 2016
New Revision: 239471
URL: https://gcc.gnu.org/viewcvs?rev=239471&root=gcc&view=rev
Log:
2016-08-15 Richard Biener <rguenther@suse.de>
PR tree-optimization/73434
* tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
TBAA info on the base when forwarding a non-invariant address.
* gcc.dg/torture/pr73434.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr73434.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-sccvn.c