From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E458393A42D; Tue, 9 Feb 2021 19:14:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E458393A42D From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99002] [11 Regression] memory leak in if-to-switch Date: Tue, 09 Feb 2021 19:14:20 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 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: Tue, 09 Feb 2021 19:14:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99002 --- Comment #2 from Richard Biener --- Another one: =3D=3D17557=3D=3D Memcheck, a memory error detector =3D=3D17557=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward = et al. =3D=3D17557=3D=3D Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyr= ight info =3D=3D17557=3D=3D Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/torture/pr63464.c =3D=3D17557=3D=3D=20 =3D=3D17557=3D=3D=20 =3D=3D17557=3D=3D HEAP SUMMARY: =3D=3D17557=3D=3D in use at exit: 1,890,206 bytes in 2,855 blocks =3D=3D17557=3D=3D total heap usage: 86,712 allocs, 83,857 frees, 16,547,8= 76 bytes allocated =3D=3D17557=3D=3D=20 =3D=3D17557=3D=3D 448 bytes in 8 blocks are definitely lost in loss record = 674 of 760 =3D=3D17557=3D=3D at 0x4C2E94F: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) =3D=3D17557=3D=3D by 0x24FF041: if_chain::is_beneficial() (gimple-if-to-switch.cc:207) =3D=3D17557=3D=3D by 0x250052F: (anonymous namespace)::pass_if_to_switch::execute(function*) (gimple-if-to-switch.cc:5= 45) =3D=3D17557=3D=3D by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:25= 72) =3D=3D17557=3D=3D by 0x12E8321: execute_pass_list_1(opt_pass*) (passes.c= :2661) =3D=3D17557=3D=3D by 0x12E8352: execute_pass_list_1(opt_pass*) (passes.c= :2662) =3D=3D17557=3D=3D by 0x12E83AA: execute_pass_list(function*, opt_pass*) (passes.c:2672) =3D=3D17557=3D=3D by 0x12E62DF: do_per_function_toporder(void (*)(functi= on*, void*), void*) (passes.c:1774) =3D=3D17557=3D=3D by 0x12E8FDA: execute_ipa_pass_list(opt_pass*) (passes= .c:3006) =3D=3D17557=3D=3D by 0xCFC9EE: ipa_passes() (cgraphunit.c:2157) =3D=3D17557=3D=3D by 0xCFCE24: symbol_table::compile() (cgraphunit.c:229= 2) =3D=3D17557=3D=3D by 0xCFD391: symbol_table::finalize_compilation_unit() (cgraphunit.c:2540)=