From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4816C38582BC; Fri, 15 Sep 2023 13:47:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4816C38582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694785643; bh=3Mgd1GNfM0OwZdGGaX6xvwSaIaA6rMAeR/4kJmr6rDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XdreM29FINrEKRYK3ESybw2sGjjh4tmxGDH78c87TT5pSKUjWlMDpwruBfcfAqRP2 4rhWcVK5+2/hLYG+wTggKaHHvn6QtQWK94T3f9yeK9BGDvlAguUBZHWgMAmAiY9DM2 l4cQovbEUR48cqTVJSSBjBnbLkd3wmXI2AvHE8gU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111407] ICE: SSA corruption due to widening_mul opt on conflict across an abnormal edge Date: Fri, 15 Sep 2023 13:47:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao 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=3D111407 --- Comment #9 from CVS Commits --- The master branch has been updated by Qing Zhao : https://gcc.gnu.org/g:4aca1cfd6235090e48a53dab734437740671bbf3 commit r14-4034-g4aca1cfd6235090e48a53dab734437740671bbf3 Author: Qing Zhao Date: Fri Sep 15 13:46:52 2023 +0000 Fix PR111407--SSA corruption due to widening_mul opt on conflict across= an abnormal edge This is a bug in tree-ssa-math-opts.cc, when applying the widening mul optimization, the compiler needs to check whether the operand is in a ABNORMAL PHI, if YES, we should avoid the transformation. PR tree-optimization/111407 gcc/ChangeLog: * tree-ssa-math-opts.cc (convert_mult_to_widen): Avoid the transform when one of the operands is subject to abnormal coalescing. gcc/testsuite/ChangeLog: * gcc.dg/pr111407.c: New test.=