[PATCH] D97840: [AArch64] Legalize horizontal fmax/fmin reductions on f16 vectors

LemonBoy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 01:15:00 PST 2021


LemonBoy created this revision.
LemonBoy added reviewers: aemerson, t.p.northover.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
LemonBoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Expand the horizontal reduction during the instruction selection phase, but only if the target doesn't support the full fp16 instruction set.

Fixes https://bugs.llvm.org/show_bug.cgi?id=49401


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97840

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/vecreduce-fmax-legalization.ll
  llvm/test/CodeGen/AArch64/vecreduce-fmin-legalization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97840.327707.patch
Type: text/x-patch
Size: 9304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210303/6a537df2/attachment.bin>


More information about the llvm-commits mailing list