This is an archive of the discontinued LLVM Phabricator instance.

[WIP][LoopVectorize] Convert switch blocks into branch sequence
AbandonedPublic

Authored by Allen on Dec 27 2021, 5:48 AM.

Details

Summary

Removing switch blocks and replacing them with compares and branches
allows architectures that support predication to vectorize.

Diff Detail

Event Timeline

Allen created this revision.Dec 27 2021, 5:48 AM
Allen requested review of this revision.Dec 27 2021, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2021, 5:48 AM

This has been brought up several times already, lastly in D108138, i believe noting principally changed since then.

Allen added a comment.Dec 27 2021, 8:03 PM

This has been brought up several times already, lastly in D108138, i believe noting principally changed since then.

Ok, I'm abandoning the patch for now as it don't teach the LV to recognise switches.

ormris removed a subscriber: ormris.Jan 18 2022, 10:25 AM
Allen retitled this revision from [Huawei][LoopVectorize] Convert switch blocks into branch sequence to [WIP][LoopVectorize] Convert switch blocks into branch sequence.Mar 5 2022, 2:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2022, 2:26 AM
Allen abandoned this revision.Jun 1 2022, 6:08 PM