[PATCH] D119356: [Codegen][ReplaceWithVecLib] Fix pow intrinsics in ReplaceWithVecLib pass

Tiago Trevisan Jost via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 09:55:36 PST 2022


ttjost created this revision.
ttjost added reviewers: LukasSommerTu, spatel, fhahn.
Herald added a subscriber: hiraditya.
ttjost requested review of this revision.
Herald added a project: LLVM.

This patch fixes the replacement of `pow` intrinsics
by its vector library implementation.

Function `Intrinsic::getName` was being called with
a wrong set of arguments. This prevented `TargetLibraryInfo`
from getting the right name for the vectorized version of `pow`
for different library implementations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119356

Files:
  llvm/lib/CodeGen/ReplaceWithVeclib.cpp
  llvm/test/CodeGen/Generic/replace-intrinsics-with-veclib.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119356.407178.patch
Type: text/x-patch
Size: 4626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/aa1a739f/attachment.bin>


More information about the llvm-commits mailing list