This is an archive of the discontinued LLVM Phabricator instance.

[SLPVectorizer] Relax alternate opcodes to accept any BinaryOperator pair
ClosedPublic

Authored by RKSimon on Jun 22 2018, 4:15 AM.

Details

Summary

SLP currently only accepts (F)Add/(F)Sub alternate counterpart ops to be merged into an alternate shuffle.

This patch proposes to relax this to accept any pair of BinaryOperator opcodes instead, assuming the target's cost model accepts the vectorization+shuffle.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Jun 22 2018, 4:15 AM
This revision is now accepted and ready to land.Jun 22 2018, 6:23 AM
This revision was automatically updated to reflect the committed changes.