[llvm] Skip tranformConstExprCastCall for naked function (PR #76496)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 1 01:46:57 PST 2024


================
@@ -0,0 +1,16 @@
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+define dso_local void @naked_func() #0 {
+entry:
+  tail call void asm sideeffect "mov  r1, r0", ""()
+  unreachable
+}
+
+define i32 @main() {
+; CHECK:  call void @naked_func(i32 noundef 1)
+entry:
+  call void @naked_func(i32 noundef 1)
----------------
nikic wrote:

Remove noundef.

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


More information about the llvm-commits mailing list