[llvm] Count CallInst Arguments Attributes to reduce unnecessary extension (PR #73501)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 03:30:01 PST 2023


================
@@ -0,0 +1,127 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv64 -mattr=+zbb -verify-machineinstrs < %s \
+; RUN:   | FileCheck -check-prefix=RV64I %s
+
+ at PL_reg_match_utf8 = external dso_local local_unnamed_addr global i8, align 1
+
+declare dso_local signext i32 @test1(i8 noundef signext)
+
+declare dso_local signext i32 @test2(i8 noundef signext)
+
+declare dso_local signext i32 @test3(i8 noundef signext)
+
+define dso_local signext i32 @test() {
----------------
nikic wrote:

Add nounwind to avoid unnecessary CFI.

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


More information about the llvm-commits mailing list