[llvm] [Pipelines] Perform mergefunc after constmerge (PR #92498)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 06:33:55 PDT 2024


================
@@ -0,0 +1,78 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -passes="default<O3>" -enable-merge-functions -S < %s | FileCheck %s
+
+target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx12.0.0"
+
+; Function Attrs: noinline nounwind optsize ssp uwtable
+define i32 @f(i32 noundef %x) #0 {
----------------
nikic wrote:

```suggestion
define i32 @f(i32 noundef %x) {
```
Here and elsewhere.

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


More information about the llvm-commits mailing list