HomePhabricator

[X86][AVX512] Add combine for TESTM

Description

[X86][AVX512] Add combine for TESTM

Add an X86 combine for TESTM when one of the operands is a BUILD_VECTOR(0,0,...).

TESTM op0, BUILD_VECTOR(0,0,...) -> BUILD_VECTOR(0,0,...)
TESTM BUILD_VECTOR(0,0,...), op1 -> BUILD_VECTOR(0,0,...)

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

Details

Committed
guyblankAug 13 2017, 1:03 AM
Differential Revision
D36536: [X86][AVX512] Add combine for TESTM
Parents
rL310786: [X86] Early out of combineInsertSubvector for mask vectors.
Branches
Unknown
Tags
Unknown