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

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


================
@@ -0,0 +1,67 @@
+; 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 {
+; CHECK-LABEL: @f(
+entry:
+  %x.addr = alloca i32, align 4
+  store i32 %x, ptr %x.addr, align 4, !tbaa !5
----------------
nikic wrote:

Drop tbaa metadata, it should not be necessary.

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


More information about the llvm-commits mailing list