From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1CAA3895FFB; Thu, 6 Oct 2022 15:32:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1CAA3895FFB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665070346; bh=fsIeNocJYsnDXeHNQ264Obg7SgCglEJm41l7hGvtNxs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TBnQmMRwkNS4CZLrwFeY2cpmYWHPQpQDrkaNosV43xhriwnpfIKBEY+YJjauv6n2T y0X8x0HfE7hxzY6ftdSMT85TT2pqrl9E4oxr/t0VHH4Xif6R2IdQGFhXeEac3ZGWrd EJ3UOoIjA/ENlG9mN5TyH2GdvwmMFxFhZbT3bcu4= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107115] Wrong codegen from TBAA under stores that change effective type? Date: Thu, 06 Oct 2022 15:32:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: alias, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107115 --- Comment #7 from Jakub Jelinek --- If we don't want to treat such copies as noop moves, then either we need to change rtx_equal_p such that it will say MEMs aren't equal if the the alias sets are different, or should tweak in the same spirit the i386.md peephole2 and set_noop_p (and perhaps some other spot). But if we do either of that,= it would be nice to get rid of the for assembly actually noop move later on shortly before expansion or emit it as nothing, because assembler then does= n't care about alias sets.=