This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Support negation of scalable-vector splats
ClosedPublic

Authored by frasercrmck on Jun 7 2021, 4:02 AM.

Details

Summary

This patch is an extension of D103421. It allows the InstCombiner to
generate the negated form of integer scalable-vector splats. It can
technically handle fixed-length vectors too but those are completely
covered by the preceding logic.

This enables extra combining opportunities for scalable vector types.

Diff Detail

Event Timeline

frasercrmck created this revision.Jun 7 2021, 4:02 AM
frasercrmck requested review of this revision.Jun 7 2021, 4:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2021, 4:02 AM
RKSimon accepted this revision.Jun 7 2021, 6:10 AM

LGTM - cheers

This revision is now accepted and ready to land.Jun 7 2021, 6:10 AM