This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

RKSimon created this revision.Apr 3 2023, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 9:41 AM
RKSimon requested review of this revision.Apr 3 2023, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 9:41 AM
This revision is now accepted and ready to land.Apr 3 2023, 1:33 PM