This already exists in InstCombine but was missing from the late stage ExpandReductions pass
Fixes Issue #53419
Paths
| Differential D147452
[CodeGen] ExpandReductions - add reduce_and/or(<X x i1> V) -> icmp(iX bitcast(<X x i1> V)) canonicalization ClosedPublic Authored by RKSimon on Apr 3 2023, 9:41 AM.
Details Summary This already exists in InstCombine but was missing from the late stage ExpandReductions pass Fixes Issue #53419
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 3 2023, 1:33 PM Closed by commit rG00e3ae447150: [CodeGen] ExpandReductions - add reduce_and/or(<X x i1> V) -> icmp(iX bitcast… (authored by RKSimon). · Explain WhyApr 4 2023, 3:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 510536 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
|