[llvm] [llvm] Improve TLI for Darwin libsystem_m functions (PR #109479)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 14:22:28 PDT 2024


================
@@ -0,0 +1,43 @@
+; RUN: opt -vector-library=Darwin_libsystem_m -passes=inject-tli-mappings,loop-vectorize -S < %s | FileCheck %s
+
+target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
----------------
jroelofs wrote:

> I don't know if adding a new test file is the right approach.

fixed this by moving the test into an assertion inside `addVectorizableFunctions`. Now it's a bit harder to miss the entry in `hasOptimizedCodeGen` when adding new ones.

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


More information about the llvm-commits mailing list