[PATCH] D80744: DAGCombiner optimization for pow(x, 0.75) even in case massv function is asked
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 21:55:36 PDT 2020
steven.zhang added a comment.
What we are doing is as follows:
llvm.pow(IR) --> FPOW(ISD) --> __powf4_P8/9(ISD/IR)
It makes more sense to do it in the IR pass from what I see. And then, you can query the TargetLibraryInfoImpl::isFunctionVectorizable(name) instead of the option. Maybe, we can do it in ppc pass: PPCLowerMASSVEntries which did something like:
__sind2_massv --> __sind2_P9 for a Power9 subtarget.
Does it make sense ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80744/new/
https://reviews.llvm.org/D80744
More information about the llvm-commits
mailing list