[SLP] Add cost model for `llvm.powi.*` intrinsics
commite6ccb57bb3f6b761f2310e97fd6ca99eff42f73e
authorNabeel Omer <Nabeel.Omer@sony.com>
Mon, 20 Jun 2022 12:49:25 +0000 (20 12:49 +0000)
committerNabeel Omer <Nabeel.Omer@sony.com>
Tue, 21 Jun 2022 14:40:34 +0000 (21 14:40 +0000)
tree436b35487a1c77857a5d503d1d0fad7adece4de9
parenta44c6453fe3844de0efe8f490bb7a27c6f188dfd
[SLP] Add cost model for `llvm.powi.*` intrinsics

This patch adds handling for the llvm.powi.* intrinsics in
BasicTTIImplBase::getIntrinsicInstrCost() and improves vectorization.
Closes #53887.

Differential Revision: https://reviews.llvm.org/D128172
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/Analysis/CostModel/X86/powi.ll
llvm/test/Transforms/SLPVectorizer/X86/powi-regression.ll
llvm/test/Transforms/SLPVectorizer/X86/powi.ll