[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
Sat Feb 11 04:09:34 PST 2023


fakepaper56 marked 2 inline comments as done.
fakepaper56 added inline comments.


================
Comment at: llvm/lib/CodeGen/ExpandPowi.cpp:82
+      ExpTy, Intrinsic::vp_and, {Exp, ConstantInt::get(ExpTy, 1), True, EVL});
+  // FIXME: Use vp.icmp.
+  Value *IsOdd = Builder.CreateICmpNE(And1, ConstantInt::get(ExpTy, 0));
----------------
craig.topper wrote:
> What's preventing using vp.icmp?
It is only that I don't know how to construct vp.icmp/vp.fcmp instructions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143578/new/

https://reviews.llvm.org/D143578



More information about the llvm-commits mailing list