From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 560CC3858C55; Thu, 13 Oct 2022 16:04:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 560CC3858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665677075; bh=qWue2mtk5heFi6vNH94e6Hm8G4Ugsnegl5UeUd4HfRs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a8/zwegN/KsbIb8xdbdO28Hh9W3ZTIfGZQMQPgJ2uW7V7TIt+8B2mKW5daoDiMa0i lTQh1vR9qgF47O0GAreHLWv7KpRWiIv+pfRdkbNcoYje2hDRmH45xALN5kCkFNhQJ2 wVGHv0E0GvCTT8JFMfK20e0xByWX7Hl3ykEy8IDQ= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107250] Load unnecessarily happens before malloc Date: Thu, 13 Oct 2022 16:04:35 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov 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: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107250 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #1 from Alexander Monakov --- On the other hand, dispatching the load before malloc is useful if you expe= ct it to miss in the caches. If you wrote the code with that in mind, and the compiler moved the load anyway, a manual workaround to *that* would be more invasive.=