public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce Date: Thu, 18 Nov 2021 17:42:06 +0000 [thread overview] Message-ID: <bug-103266-4-VZ2CKC5Lxt@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103266-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 --- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Hubicka <hubicka@gcc.gnu.org>: https://gcc.gnu.org/g:c331a75d49b6043399f5ccce72a02ccf3b0ddc56 commit r12-5379-gc331a75d49b6043399f5ccce72a02ccf3b0ddc56 Author: Jan Hubicka <jh@suse.cz> Date: Thu Nov 18 18:41:43 2021 +0100 Fix modref wrt __builtin_assume_aligned __builtin_assume_aligned has bit contraictionary fnspec description "1cX " which means that parameter 1 is returned but also unused. PTA code takes precedence to parameter being returned, while modref takes the info that parameter is unused. This patch tweaks modref to follow PTA semantics (as suggested by Richard in the PR log) gcc/ChangeLog: 2021-11-18 Jan Hubicka <hubicka@ucw.cz> PR ipa/103266 * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused parameter may still be returned. (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags even for unused function args. gcc/testsuite/ChangeLog: 2021-11-18 Jan Hubicka <hubicka@ucw.cz> PR ipa/103266 * g++.dg/torture/pr103266.C: New test.
next prev parent reply other threads:[~2021-11-18 17:42 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-15 19:24 [Bug tree-optimization/103266] New: " slyfox at gcc dot gnu.org 2021-11-15 19:45 ` [Bug tree-optimization/103266] " jakub at gcc dot gnu.org 2021-11-15 21:15 ` hubicka at gcc dot gnu.org 2021-11-15 21:33 ` hubicka at gcc dot gnu.org 2021-11-16 7:26 ` rguenther at suse dot de 2021-11-16 10:03 ` hubicka at kam dot mff.cuni.cz 2021-11-16 10:23 ` rguenther at suse dot de 2021-11-18 17:08 ` hubicka at gcc dot gnu.org 2021-11-18 17:42 ` cvs-commit at gcc dot gnu.org [this message] 2021-11-20 10:34 ` hubicka at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103266-4-VZ2CKC5Lxt@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).