HomePhabricator

[X86] getX86MaskVec - replace mask limit from NumElts < 8 with NumElts <= 4

Authored by RKSimon on Aug 6 2020, 3:46 AM.

Description

[X86] getX86MaskVec - replace mask limit from NumElts < 8 with NumElts <= 4

As noted on PR46885, the number of mask elements should always be a power of 2, so to fix the static analyzer warning we are better off replacing the condition to <= 4, and I've added a pow2 assertion as well.

Details

Committed
RKSimonAug 6 2020, 3:46 AM
Parents
rG87c5437afd27: PDBExtras.h - remove unnecessary raw_ostream forward declaration. NFCI.
Branches
Unknown
Tags
Unknown