From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C80E388A83D; Mon, 15 Jun 2020 18:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C80E388A83D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592244761; bh=zG7TgHMs+Z5Y0QeaS1U85lwCYHa+6W4WvxrQBmk9brQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=T6oQ+r04kozkQGBBC/iMuTZ+m126GhLk0r257mgvBTRZKndpWLpY9cMZ02uu5fuN2 gYbBgzVnxgDuHhyaHN0UlfFln74XgzOjJoIVfkVBNcs30npqM71XdpMg3q0GPipqCL pKbVQm2DT5wmrOWO5V1+y9ivkcPHPR8eLvm7jOCY= From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95649] [11 Regression] ICE during GIMPLE pass: cunroll since r11-1146-g1396fa5b91cfa0b3 Date: Mon, 15 Jun 2020 18:12:40 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2020 18:12:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95649 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at gcc dot gnu.org --- Comment #5 from Aldy Hernandez --- The problem here is that the code in propagate_into_phi_args() was previous= ly in evrp but is now in the engine itself and affecting all clients. CCP and copyprop are two of these clients. The subst & fold engine is chan= ging the CFG (phis in this case) and neither pass is expecting it. A hack showi= ng that it's the PHI propagation is attached below. We could make these passes clean-up the CFG for example, but that may be he= avy handed if they're supposed to be lightweight ??. Instead we could either m= ove propagate_into_phi_args back into evrp, or only run it if a CHANGE_CFG_FLAG= or somesuch is passed to the engine constructor. I'll work on a patch. ------------------------- NOT A FIX: diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index 4fda296ef9e..249867d8633 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -1228,7 +1228,7 @@ substitute_and_fold_dom_walker::before_dom_children (basic_block bb) } } - substitute_and_fold_engine->propagate_into_phi_args (bb); + //substitute_and_fold_engine->propagate_into_phi_args (bb); return NULL; }=