From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 535ED3858D28; Wed, 21 Jun 2023 17:05:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 535ED3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687367131; bh=w1CL06u7oR0yF/G9LDvVAR+7rRNLELhQRVzZBAHKSI4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XN9kkUrMzicRobQliiMvkenCHf0caA5saeCFhVz8bbpqcgLlk8zgOWbh7sFuwqlri c3aQvQ1I4QC2407HCpiDowchiIMhrCuz29ABzQ52mKuBMSF1ounRUw3PeX9ZHFFzCj 25gAbXR06b+coCW9uEQbsuSSLFoDBb9HCvTBefs4= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110332] [14 regression] ICE in dominated_by_p when building LLVM with -O3 Date: Wed, 21 Jun 2023 17:05:29 +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-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110332 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at gcc dot gnu.org --- Comment #6 from Sergei Trofimovich --- I think I see the same ICE on llvm-12 and r14-2009-g864c6471bdc6cd: cvise produced this thing: // $ cat a.cpp.cpp struct SlotIndex { int lie; }; SlotIndex si7, si8; unsigned u9, u6; bool b3, b4; unsigned &value() { return b4 ? u6 : u9; } void transferValues() { unsigned RegIdx; SlotIndex End; RegIdx =3D value(); End =3D b3 ? si7 : si8; } $ g++ -O3 -c a.cpp.cpp -o a.o during GIMPLE pass: phiprop a.cpp.cpp: In function 'void transferValues()': a.cpp.cpp:14:1: internal compiler error: Segmentation fault 14 | } | ^ 0x1d74824 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, = char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x1d74d97 internal_error(char const*, ...) ???:0 0xe9bfdf crash_signal(int) ???:0 0xa851da dominated_by_p(cdi_direction, basic_block_def const*, basic_block_= def const*) ???:0 0x102096b (anonymous namespace)::pass_phiprop::execute(function*) ???:0 $ g++ -v Using built-in specs. COLLECT_GCC=3D/<>/gcc-14.0.0/bin/g++ COLLECT_LTO_WRAPPER=3D/<>/gcc-14.0.0/libexec/gcc/x86_64-unknown-linux-= gnu/14.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with:=20 Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 99999999 (experimental) (GCC)=