[PATCH] D95373: Replace vector intrinsics with call to vector library
Lukas Sommer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 25 10:03:42 PST 2021
LukasSommerTu added a comment.
@lebedev.ri: Thanks for your feedback!
My reasoning to implement this as an IR pass was that the replacement for the scalar version of the intrinsics is also happening as part of the middle-end, so it made sense to me to implement this in a similar location and use similar mechansisms.
My motivating usage scenario was to add this pass to the pipeline that is applied after converting from MLIR to LLVM IR, which introduces these calls. As the replacement requires some target-specific information (TargetLibraryInfo), implementing it on the LLVM side rather than in MLIR seemed reasonable to me. If other frontends produce similar IR, they can also benefit from this pass/transformation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95373/new/
https://reviews.llvm.org/D95373
More information about the llvm-commits
mailing list