[PATCH] D147452: [CodeGen] ExpandReductions - add reduce_and/or(<X x i1> V) -> icmp(iX bitcast(<X x i1> V)) canonicalization
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 3 09:42:01 PDT 2023
RKSimon created this revision.
RKSimon added reviewers: spatel, craig.topper, efriedma, pengfei.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.
This already exists in InstCombine but was missing from the late stage ExpandReductions pass
Fixes Issue #53419
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147452
Files:
llvm/lib/CodeGen/ExpandReductions.cpp
llvm/test/CodeGen/X86/pr53419.ll
llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
llvm/test/CodeGen/X86/vector-reduce-or-bool.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147452.510536.patch
Type: text/x-patch
Size: 150569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/78407fec/attachment-0001.bin>
More information about the llvm-commits
mailing list