This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44972] [4.6 Regression] ICE: in load_assign_lhs_subreplacements, at tree-sra.c:2475
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2010 20:57:10 -0000
- Subject: [Bug tree-optimization/44972] [4.6 Regression] ICE: in load_assign_lhs_subreplacements, at tree-sra.c:2475
- References: <bug-44972-6008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-07-18 20:57 -------
Martin, can you have a look here? All this build_ref_for_offset should
now be very easy. But we need to have the original access tree that we
replace as well. The built access should simply be
fold_build2 (MEM_REF, type-of-the-access,
address-of-the-base,
build_int_cst (reference_alias_ptr_type (reference-to-replace),
constant-offset));
which is valid in all cases (doesn't need VIEW_CONVERT_EXPRs or anything
like that).
I think I tried to do that on the mem-ref branch but failed as
build_ref_for_offset is convoluted and the allow_ptr flag confuses me
(I think the IPA uses should be separated from the SRA ones).
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamborm at gcc dot gnu dot
| |org
AssignedTo|rguenth at gcc dot gnu dot |jamborm at gcc dot gnu dot
|org |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44972