[PATCH] D61398: [SDAG][AArch64] Boolean and/or reduce to umax/min reduce (PR41635)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 13:33:01 PDT 2019


nikic created this revision.
nikic added reviewers: RKSimon, sdesmalen, aemerson, efriedma.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls, javed.absar.
Herald added a project: LLVM.

This addresses one half of https://bugs.llvm.org/show_bug.cgi?id=41635 by combining a VECREDUCE_AND into VECREDUCE_UMIN (if latter legal but former not) for zero-or-all-ones boolean reductions. I'm using sign bits to detect that, is there a better way to do that?


Repository:
  rL LLVM

https://reviews.llvm.org/D61398

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/vecreduce-bool.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61398.197627.patch
Type: text/x-patch
Size: 8434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190501/12363423/attachment.bin>


More information about the llvm-commits mailing list