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 ipa/99517] [10 Regression] __builtin_convertvector with casts Date: Fri, 19 Mar 2021 23:30:26 +0000 [thread overview] Message-ID: <bug-99517-4-WxkMsW63NN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99517-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99517 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:b0d1a533d62ff137e3d54ccf32cf876e5b49d2ab commit r10-9483-gb0d1a533d62ff137e3d54ccf32cf876e5b49d2ab Author: Jakub Jelinek <jakub@redhat.com> Date: Thu Mar 11 10:59:18 2021 +0100 icf: Check return type of internal fn calls [PR99517] The following testcase is miscompiled, because IPA-ICF considers the two functions identical. They aren't, the types of the .VEC_CONVERT call lhs is different. But for calls to internal functions, there is no fntype nor callee with a function type to compare, so all we compare is just the ifn, arguments and some call flags. The following patch fixes it by checking the internal fn calls like e.g. gimple assignments where the type of the lhs is checked too. 2021-03-11 Jakub Jelinek <jakub@redhat.com> PR ipa/99517 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal function calls with lhs fail if the lhs don't have compatible types. * gcc.target/i386/avx2-pr99517-1.c: New test. * gcc.target/i386/avx2-pr99517-2.c: New test. (cherry picked from commit 070ab283d16d8e8e8bb70f9801aca347f008cbd0)
next prev parent reply other threads:[~2021-03-19 23:30 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-10 13:27 [Bug c/99517] New: " me+gcc.gnu at lelf dot lu 2021-03-10 13:53 ` [Bug c/99517] " rguenth at gcc dot gnu.org 2021-03-10 14:02 ` [Bug ipa/99517] " jakub at gcc dot gnu.org 2021-03-10 14:09 ` marxin at gcc dot gnu.org 2021-03-10 14:14 ` jakub at gcc dot gnu.org 2021-03-10 14:57 ` jakub at gcc dot gnu.org 2021-03-11 8:09 ` rguenth at gcc dot gnu.org 2021-03-11 10:18 ` cvs-commit at gcc dot gnu.org 2021-03-11 10:30 ` [Bug ipa/99517] [10 Regression] " jakub at gcc dot gnu.org 2021-03-19 23:30 ` cvs-commit at gcc dot gnu.org [this message] 2021-03-20 8:09 ` jakub 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-99517-4-WxkMsW63NN@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).