[PATCH] D128172: [SLP] Add cost models for llvm.powi.* intrinsics

Nabeel Omer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 02:52:41 PDT 2022


n-omer created this revision.
n-omer added reviewers: RKSimon, craig.topper, efriedma, spatel, ABataev.
Herald added subscribers: vporpo, StephenFan, hiraditya.
Herald added a project: All.
n-omer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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

Closes #53887.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128172

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128172.438312.patch
Type: text/x-patch
Size: 84088 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/5268197a/attachment-0001.bin>


More information about the llvm-commits mailing list