From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B2433858C41; Tue, 8 Aug 2023 03:28:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B2433858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691465300; bh=E8fw4W0oDyreh4AE8U37nttGVzlLzONsdm4Km9qDYw0=; h=From:To:Subject:Date:From; b=Xl2VJhWaCTx0ZFoskHj8ChXnOfs3uFx9yuhW12xSpiiSox1ndnAT82M4JNB7gTAAq 2gRwdrAUnBJjFicwquMG7XGJAi9YGT5VwQZ3pmjdQ7vWmLfffMQhlslVPjH+6rtnq6 Ulk15rb5M37d3vPnm3MGjXd2MbtvvwswpzUc2sgc= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 Date: Tue, 08 Aug 2023 03:28:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110940 Bug ID: 110940 Summary: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- This appears to be a recent regression. Compiler Explorer: https://godbolt.org/z/evGMc8xEW [595] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/home/suz/suz-local/software/local/gcc-trunk/bi= n/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=3Dyes --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-mu= ltilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20230808 (experimental) (GCC)=20 [596] %=20 [596] % gcctk -O3 -c small.c during GIMPLE pass: vect small.c: In function =E2=80=98main=E2=80=99: small.c:3:5: internal compiler error: in apply_scale, at profile-count.h:11= 80 3 | int main() { | ^~~~ 0xab66c3 profile_count::apply_scale(profile_count, profile_count) const ../../gcc-trunk/gcc/profile-count.h:1180 0x10311cf fold_loop_internal_call(gimple*, tree_node*) ../../gcc-trunk/gcc/tree-cfg.cc:7738 0x12d2ef5 execute ../../gcc-trunk/gcc/tree-vectorizer.cc:1328 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [597] %=20 [597] % cat small.c int a, b[1], c, *d =3D &a, e, f, g, h, i, j; extern int l(); int main() { if (l()) for (;;) for (; g;) for (; e;) for (; a;) for (; f;) for (; h;) for (; i;) for (; c;) for (; j;) ; l(); for (; c; c++) b[*d] =3D 0; return 0; }=