[PATCH] D143578: [VP] Add vp.powi and a pass for expanding vp.powi before DAG.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 06:09:49 PST 2023


fakepaper56 created this revision.
fakepaper56 added reviewers: craig.topper, reames, frasercrmck, rogfer01, simoll.
Herald added a subscriber: hiraditya.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999, jdoerfert.
Herald added a project: LLVM.

The patch uses different expanding way for vp.powi from the method of powi.
Vector powi is unrolled to multiple powi() libary calls in SelectionDAG, but the
method is not work for scalable vectors.
To support scalable vectors, the patch expands vp.powi at IR level. The
expanding way of vp.powi is based on compiler-rt/__powidf2.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143578

Files:
  llvm/include/llvm/CodeGen/MachinePassRegistry.def
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/VPIntrinsics.def
  llvm/include/llvm/InitializePasses.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/ExpandPowi.cpp
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143578.495819.patch
Type: text/x-patch
Size: 11079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230208/9b75413b/attachment.bin>


More information about the llvm-commits mailing list