From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F1B93858C32; Wed, 10 Apr 2024 13:40:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F1B93858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712756423; bh=XeDnF7VNLLHfiAcVc9bVAxLmYWxXz3Bc0+H/5maMnWs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FKJe3GfpqGgTL7akA8wxvUJyKlttQJFCRDXNeovNfVL88lX7kNqK6h7Ys7rFdOvVg FdxmV+h/+jH4OgWbiSXVdwENEqhQggy2GWNLut6XcYZjyoWtUQgZpee8zSXID8oJI9 ViFawCKVzZBTbpp+CuALChV38Sn18Pvi7j8mUQ9s= From: "jakub 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 13:40:22 +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: jakub 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: cc 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 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iii at gcc dot gnu.org, | |jakub at gcc dot gnu.org, | |krebbel at gcc dot gnu.org --- Comment #6 from Jakub Jelinek --- (In reply to Andrew Pinski from comment #1) > /* 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_T= YPE > ((*arglist)[2])))); > return build2 (MODIFY_EXPR, mem_type, > build1 (INDIRECT_REF, mem_type, > fold_build_pointer_plus ((*arglist)[2], > (*arglist)[1])), > (*arglist)[0]); >=20 >=20 > 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 . Building MEM_REF is one option, another one is to cast the operand of INDIRECT_REF to build_pointer_type (mem_type, VOIDmode, true) type.=