[llvm] [NFC][llvm] Simplify test IR file (PR #155926)

Prabhu Rajasekaran via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 14:31:48 PDT 2025


https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/155926

>From 2efc3b3a6968f08aa28ed5bf5a1a1071b45cf9cc Mon Sep 17 00:00:00 2001
From: Prabhu Rajasekaran <prabhukrllvm at gmail.com>
Date: Thu, 28 Aug 2025 14:30:36 -0700
Subject: [PATCH] [NFC][llvm] Simplify test IR file

Simplify  call-graph-section.ll test file for better readability.
---
 llvm/test/CodeGen/X86/call-graph-section.ll | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/llvm/test/CodeGen/X86/call-graph-section.ll b/llvm/test/CodeGen/X86/call-graph-section.ll
index 4a9840eac4898..66d009cf1221d 100644
--- a/llvm/test/CodeGen/X86/call-graph-section.ll
+++ b/llvm/test/CodeGen/X86/call-graph-section.ll
@@ -11,14 +11,12 @@ declare !type !2 ptr @baz(ptr)
 
 define void @main() {
 entry:
-  %a = alloca i8, align 1
   %fp_foo_val = load ptr, ptr null, align 8
   call void (...) %fp_foo_val(), !callee_type !1
   %fp_bar_val = load ptr, ptr null, align 8
-  %param = trunc i64 0 to i8
-  %call_fp_bar = call i32 %fp_bar_val(i8 signext %param), !callee_type !3
+  %call_fp_bar = call i32 %fp_bar_val(i8 0), !callee_type !3
   %fp_baz_val = load ptr, ptr null, align 8
-  %call_fp_baz = call ptr %fp_baz_val(ptr %a), !callee_type !4
+  %call_fp_baz = call ptr %fp_baz_val(ptr null), !callee_type !4
   ret void
 }
 



More information about the llvm-commits mailing list