From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25BE8389365A; Mon, 8 Feb 2021 13:09:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25BE8389365A From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99002] New: [11 Regression] memory leak in if-to-switch Date: Mon, 08 Feb 2021 13:09:06 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: --- 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 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, 08 Feb 2021 13:09:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99002 Bug ID: 99002 Summary: [11 Regression] memory leak in if-to-switch Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- =3D=3D1542=3D=3D Memcheck, a memory error detector =3D=3D1542=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward e= t al. =3D=3D1542=3D=3D Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyri= ght info =3D=3D1542=3D=3D Command: ./cc1 -quiet -fdiagnostics-plain-output -O2 -fno-= tree-vrp -fdump-tree-dom2-details -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-11.c =3D=3D1542=3D=3D =3D=3D1542=3D=3D =3D=3D1542=3D=3D HEAP SUMMARY: =3D=3D1542=3D=3D in use at exit: 1,875,265 bytes in 2,696 blocks =3D=3D1542=3D=3D total heap usage: 16,329 allocs, 13,633 frees, 6,189,742= bytes allocated =3D=3D1542=3D=3D =3D=3D1542=3D=3D 64 bytes in 1 blocks are definitely lost in loss record 15= 1 of 682 =3D=3D1542=3D=3D at 0x4C2E94F: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) =3D=3D1542=3D=3D by 0x24FFE0F: find_conditions(basic_block_def*, hash_map, condition_info= *> >*) (gimple-if-to-switch.cc:398) =3D=3D1542=3D=3D by 0x250044B: (anonymous namespace)::pass_if_to_switch::execute(function*) (gimple-if-to-switch.cc:4= 99) =3D=3D1542=3D=3D by 0x12E8130: execute_one_pass(opt_pass*) (passes.c:257= 2) =3D=3D1542=3D=3D by 0x12E8467: execute_pass_list_1(opt_pass*) (passes.c:= 2661) =3D=3D1542=3D=3D by 0x12E8498: execute_pass_list_1(opt_pass*) (passes.c:= 2662) =3D=3D1542=3D=3D by 0x12E84F0: execute_pass_list(function*, opt_pass*) (passes.c:2672) =3D=3D1542=3D=3D by 0x12E6425: do_per_function_toporder(void (*)(functio= n*, void*), void*) (passes.c:1774) =3D=3D1542=3D=3D by 0x12E9120: execute_ipa_pass_list(opt_pass*) (passes.= c:3006) =3D=3D1542=3D=3D by 0xCFC9D6: ipa_passes() (cgraphunit.c:2157) =3D=3D1542=3D=3D by 0xCFCE0C: symbol_table::compile() (cgraphunit.c:2292) =3D=3D1542=3D=3D by 0xCFD379: symbol_table::finalize_compilation_unit() (cgraphunit.c:2540) =3D=3D1542=3D=3D=