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/44972] [4.6 Regression] ICE: in load_assign_lhs_subreplacements, at tree-sra.c:2475



------- 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


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