[PATCH] D128996: [LegalizeTypes] Replace vecreduce_xor/or with vecreduce_add/umax if not legal

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 07:53:13 PDT 2022


bsmith created this revision.
bsmith added reviewers: paulwalker-arm, peterwaller-arm, c-rhodes, sdesmalen.
Herald added a subscriber: hiraditya.
Herald added a project: All.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is done during type legalization since the target representation of
these nodes may not be valid until after type legalization, and after
type legalization the fact that these are dealing with i1 types may be
lost.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128996

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/reduce-or.ll
  llvm/test/CodeGen/AArch64/reduce-xor.ll
  llvm/test/CodeGen/AArch64/vecreduce-umax-legalization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128996.441693.patch
Type: text/x-patch
Size: 11028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220701/ec9aee32/attachment.bin>


More information about the llvm-commits mailing list