[PATCH] D48149: Expand constrained FP POWI

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 13:29:54 PDT 2018


cameron.mcinally created this revision.
cameron.mcinally added reviewers: andrew.w.kaylor, craig.topper, uweigand, hfinkel.
Herald added a subscriber: llvm-commits.

This is a continuation of https://reviews.llvm.org/D47491...

POWI is an oddball math intrinsic since its 2nd argument is always a scalar integer. Add a helper function to expand STRICT_FPOWI.

Also, update the SmallVector value for both ExpandStrictFPPOWI(...) and ExpandStrictFPOp(...). The new value, 32, was chosen assuming 1024b vectors with 32b FP being the smallest element size. Special thanks to Andy for decoding how SmallVector works.


Repository:
  rL LLVM

https://reviews.llvm.org/D48149

Files:
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  test/CodeGen/X86/vector-constrained-fp-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48149.151237.patch
Type: text/x-patch
Size: 4736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180613/665c90e8/attachment.bin>


More information about the llvm-commits mailing list