This is an archive of the discontinued LLVM Phabricator instance.

[VP][fix] Don't discard masks in reductions
ClosedPublic

Authored by simoll on May 25 2022, 2:42 AM.

Details

Summary

When expanding VP reductions to non VP-code, the reduction pass was ignoring the mask before. Fix this by keeping the mask and selecting neutral elements where the mask is zero.

Diff Detail

Event Timeline

simoll created this revision.May 25 2022, 2:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 2:42 AM
simoll requested review of this revision.May 25 2022, 2:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2022, 2:42 AM
This revision is now accepted and ready to land.May 25 2022, 3:48 AM
This revision was landed with ongoing or failed builds.May 25 2022, 6:55 AM
This revision was automatically updated to reflect the committed changes.