[clang] [llvm] [llvm][fatlto] Add FatLTOCleanup pass (PR #125911)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 06:31:51 PST 2025


================
@@ -0,0 +1,156 @@
+//===- FatLtoCleanup.cpp - clean up IR for the FatLTO pipeline --*- C++ -*-===//
+//
+// 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 file defines operations used to clean up IR for the FatLTO pipeline.
+// Instrumentation that is beneficial for bitcode sections used in LTO may
+// need to be cleaned up to finish non-LTO compilation. llvm.checked.load is
+// and example of an instruction that we want to preserve for LTO, but is
----------------
nikic wrote:

```suggestion
// an example of an instruction that we want to preserve for LTO, but is
```

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


More information about the llvm-commits mailing list