https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101849
--- Comment #4 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Richard Biener from comment #3) > If you are using build_simple_mem_ref then the pointer type has to be > "correct", > but you can simply build the MEM_REF with build2 giving it the desired > access type - the pointer type is irrelevant. Is there a benefit of one over the other? ...other than the build2 code being simpler since we'd just pass in the type we want. > Note the TBAA relevant alias set is represented in the offset operand. Is that something I need to (or should) set? ...or is it handled automatically?