[llvm] [CodeGen] Introduce Static Data Splitter pass (PR #122183)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 11:22:14 PST 2025


================
@@ -0,0 +1,154 @@
+//===- StaticDataSplitter.cpp ---------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass uses profile information to partition static data sections into
+// hot and cold ones. It begins to split jump tables based on profile, and
+// subsequent patches will handle constant pools and other module internal data.
+//
+// For the original RFC of this pass please see
+// https://discourse.llvm.org/t/rfc-profile-guided-static-data-partitioning/83744.
----------------
snehasish wrote:

nit: drop the period at the end so it's easier to copy paste etc.

https://github.com/llvm/llvm-project/pull/122183


More information about the llvm-commits mailing list