[llvm] [CodeGen] Teach ReplaceWithVeclib split vector llvm.sincos when only sin/cos veclib mappings exist (PR #194639)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 02:32:37 PDT 2026


================
@@ -208,19 +208,116 @@ static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
   return true;
 }
 
+/// Returns true when \p TLI has a vector mapping for the scalar function name
+/// \p Name at \p EC (matching either masked or unmasked variants).
+static bool hasVectorMapping(const TargetLibraryInfo &TLI, StringRef Name,
+                             ElementCount EC) {
+  return TLI.getVectorMappingInfo(Name, EC, /*Masked=*/false) ||
----------------
kito-cheng wrote:

Yeah...I agree that, let me see if I can found few more time to fix that later.

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


More information about the llvm-commits mailing list