This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Improve vectorization of the CmpInst instructions.
ClosedPublic

Authored by ABataev on Apr 2 2021, 8:25 AM.

Details

Summary

During vectorization better to postpone the vectorization of the CmpInst
instructions till the end of the basic block. Otherwise we may vectorize
it too early and may miss some vectorization patterns, like reductions.

Reworked part of D57059

Diff Detail

Event Timeline

ABataev created this revision.Apr 2 2021, 8:25 AM
ABataev requested review of this revision.Apr 2 2021, 8:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2021, 8:25 AM
RKSimon accepted this revision.Apr 3 2021, 5:18 AM

LGTM

This revision is now accepted and ready to land.Apr 3 2021, 5:18 AM
This revision was automatically updated to reflect the committed changes.