From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F285E384646C; Wed, 10 Apr 2024 11:06:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F285E384646C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712747209; bh=FHSPFOxR6C9DhHHebo+QmGpGnN2iD/g4HhStLZLlapo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kV1ZMbfuoK0tuf03VHjfWlVUE+Rdahr9fIgHyh8JhYGtbVWEv2r68poFZ8m5I8McA V82Vy/qEUmdeu2OOUy2CIyG7gT4fMaA3nRqpIaeC+GavVt/S6GvrwCKSzIekJEM9Aw CAdZdSwMps2h7uoKbEkcYQeVbpRVlh0uidywR6WY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114676] [12/13/14 Regression] DSE removes assignment that is used later Date: Wed, 10 Apr 2024 11:06:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords component target_milestone 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=3D114676 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Component|tree-optimization |target Target Milestone|--- |12.4 --- Comment #1 from Andrew Pinski --- /* Build a vector type with the alignment of the target location in order to enable correct alignment hints to be generated for vst. */ tree mem_type =3D build_aligned_type (TREE_TYPE((*arglist)[0]), TYPE_ALIGN (TREE_TYPE (TREE_TYPE ((*arglist)[2])))); return build2 (MODIFY_EXPR, mem_type, build1 (INDIRECT_REF, mem_type, fold_build_pointer_plus ((*arglist)[2], (*arglist)[1])), (*arglist)[0]); Does -fno-strict-aliasing help? I wonder if the above (which is S390_OVERLOADED_BUILTIN_s390_vec_xst from s390_expand_overloaded_builtin) should be have an may_alias variant .=