HomePhabricator

[DAGCombine] visitMULHS - use getScalarValueSizeInBits() to make safe for…

Authored by RKSimon on Aug 30 2019, 5:22 AM.

Description

[DAGCombine] visitMULHS - use getScalarValueSizeInBits() to make safe for vector types.

This is hidden behind a (scalar-only) isOneConstant(N1) check at the moment, but once we get around to adding vector support we need to ensure we're dealing with the scalar bitwidth, not the total.

llvm-svn: 370468

Details

Committed
RKSimonAug 30 2019, 5:22 AM
Parents
rG68f73bf26247: [mips] Merge common checkings under the same check prefix. NFC
Branches
Unknown
Tags
Unknown