From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 843823858D39; Sun, 30 Jul 2023 09:02:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 843823858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690707748; bh=1Xngv/eaIbDw0j7fYfu3bSsG45S6qn8lAJTGZruiRxY=; h=From:To:Subject:Date:From; b=dJ9/Qk6smwjX3phvpCehGK7w6dR3pX/r92KtUah/kXps7/O2ebkW0EEdLgx0oYrw4 T9dEo3P3OqoP1cLkvfq8+mVLKeAEmLLvSdzLzKiUjvEPPdrOIJpWfvg3VszA0KYltG ATMcZbf3QAAGaIC4H18piuH/jl7OF9bHSK7cZKnA= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110852] New: [14 Regression] ICE: in get_predictor_value, at predict.cc:2695 with -O -fno-tree-fre and __builtin_expect() Date: Sun, 30 Jul 2023 09:02:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: zsojka at seznam dot cz 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost attachments.created 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=3D110852 Bug ID: 110852 Summary: [14 Regression] ICE: in get_predictor_value, at predict.cc:2695 with -O -fno-tree-fre and __builtin_expect() Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 55659 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55659&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fno-tree-fre testcase.c during GIMPLE pass: profile_estimate testcase.c: In function 'foo': testcase.c:8:1: internal compiler error: in get_predictor_value, at predict.cc:2695 8 | } | ^ 0x7c5847 get_predictor_value /repo/gcc-trunk/gcc/predict.cc:2695 0x7c5847 get_predictor_value /repo/gcc-trunk/gcc/predict.cc:2686 0x13687d0 tree_predict_by_opcode /repo/gcc-trunk/gcc/predict.cc:2750 0x13687d0 tree_estimate_probability_bb /repo/gcc-trunk/gcc/predict.cc:3131 0x1374a19 tree_estimate_probability(bool) /repo/gcc-trunk/gcc/predict.cc:3161 0x1374fb5 execute /repo/gcc-trunk/gcc/predict.cc:4133 0x1374fb5 execute /repo/gcc-trunk/gcc/predict.cc:4118 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-2866-20230729170758-= ge68a31549d9-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-2866-20230729170758-ge68a31549= d9-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20230729 (experimental) (GCC)=