From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 579473840C2B; Tue, 4 Aug 2020 17:36:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 579473840C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596562601; bh=uhcmAwK8dBp5dI//U3/Krb6kDLt1f0k5wl9NHTWO/Hk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GiR8FkfJoLgB8uxcqDH3NyEiIoECB/V+XC5CwdX+fkRYniIOhr3Z7NtQ4eM8mhC3N kMX1qrGiX7xh/w+koyYLLbKDWpHrk7QlDIxeBK2KpTlxF07F3WIOOTk2LCy5EjLY6J p2lkA2cNamd29RMN/jwDqVfaPTXAG/+FlIK6iOUM= From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/96088] Range insertion into unordered_map is less effective than a loop with insertion Date: Tue, 04 Aug 2020 17:36:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: fdumont at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fdumont at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed cf_reconfirmed_on assigned_to 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, 04 Aug 2020 17:36:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96088 Fran=C3=A7ois Dumont changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Last reconfirmed| |2020-08-04 Assignee|unassigned at gcc dot gnu.org |fdumont at gcc dot = gnu.org --- Comment #5 from Fran=C3=A7ois Dumont --- After further investigation the unordered containers are also suffering fro= m a problem similar to libstdc++/87194. There are several places where we constraint the iterator value_type to be an instance of container key_type forcing the compiler to generate temporaries. I'll fix that so that the nice enhancements already proposed can indeed wor= k.=