HomePhabricator

[InstCombine] Support negation of scalable-vector splats

Authored by frasercrmck on Jun 7 2021, 3:19 AM.

Description

[InstCombine] Support negation of scalable-vector splats

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.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D103801

Details

Committed
frasercrmckJun 7 2021, 7:14 AM
Reviewer
RKSimon
Differential Revision
D103801: [InstCombine] Support negation of scalable-vector splats
Parents
rGade4662c44f7: [clang] Remove inadvertent commit
Branches
Unknown
Tags
Unknown