Skip to content

Commit

Permalink
Fix signed/unsigned comparison warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Aug 22, 2021
1 parent 7b7ac4b commit 96fb3ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/lib/Target/X86/X86ISelLowering.cpp
Expand Up @@ -18816,8 +18816,9 @@ static SDValue lowerVECTOR_SHUFFLE(SDValue Op, const X86Subtarget &Subtarget,

V1 = DAG.getBitcast(VT, Ops[0]);
V2 = DAG.getBitcast(VT, Ops[1]);
assert(Mask.size() == NumElements && "canonicalizeShuffleMaskWithHorizOp "
"shouldn't alter the shuffle mask size");
assert(NumElements == (int)Mask.size() &&
"canonicalizeShuffleMaskWithHorizOp "
"shouldn't alter the shuffle mask size");

// Commute the shuffle if it will improve canonicalization.
if (canonicalizeShuffleMaskWithCommute(Mask)) {
Expand Down

0 comments on commit 96fb3ee

Please sign in to comment.