[llvm] [IROutliner] do not outline non-uniform immarg constants (PR #195450)
Arda Serdar Pektezol via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 10:57:47 PDT 2026
================
@@ -0,0 +1,28 @@
+; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s
+
+; Do not outline structurally similar regions when doing so would replace a
+; non-uniform immarg constant with an outlined-function argument.
+
+declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg)
+
+define ptr @PR194733() {
+entry:
+ br i1 false, label %then, label %else
+
+then:
+ %0 = load ptr, ptr null, align 8
----------------
pektezol wrote:
Sure, this was just straight from the bug report. Will update.
https://github.com/llvm/llvm-project/pull/195450
More information about the llvm-commits
mailing list