From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36D743858D35; Tue, 8 Nov 2022 15:40:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36D743858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667922006; bh=hSxPpSwCxcgLeHF4mE0AyQbzRMAsekIcrSWijy56z5Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w4s2XgOuquqkyUeptGx464KtPZATiLJBbCOJiXzv3PhmnUp3cUnOUYqhb5FBrA4Gf Dv9TErjL7Aouj4j93B8FGE7hz1ZuCPJYe5zWgs9flbYXexCHi03hoCIXFeIdVydEjt ogiDT4H6oRw3s/y457t3/pkiRlZV8MZs2r1iM7NI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107389] Always propagate __builtin_assume_aligned Date: Tue, 08 Nov 2022 15:39:56 +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: 12.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D107389 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:7899582a059a9d8c25bfff305cd236d219dc4f20 commit r13-3810-g7899582a059a9d8c25bfff305cd236d219dc4f20 Author: Richard Biener Date: Tue Nov 8 13:49:16 2022 +0100 tree-optimization/107389 - honor __builtin_assume_alignment at -O0 The following makes sure to set alignment information on the LHS of __builtin_assume_alignment calls even when not optimizing so uses as arguments to builtin functions like memcpy or __atomic_load_n can be reflected at RTL expansion time. PR tree-optimization/107389 * gimple-low.cc (lower_builtin_assume_aligned): New. (lower_stmt): Call it. * gcc.dg/pr107389.c: New testcase.=