forked from OSchip/llvm-project
[NFC][InstCombine] Fix inconsistent comments
This commit is contained in:
parent
85d4e29fd8
commit
10a5632550
|
@ -1215,8 +1215,8 @@ static Instruction *foldInsEltIntoSplat(InsertElementInst &InsElt) {
|
||||||
|
|
||||||
// Replace the shuffle mask element at the index of this insert with a zero.
|
// Replace the shuffle mask element at the index of this insert with a zero.
|
||||||
// For example:
|
// For example:
|
||||||
// inselt (shuf (inselt undef, X, 0), undef, <0,undef,0,undef>), X, 1
|
// inselt (shuf (inselt undef, X, 0), _, <0,undef,0,undef>), X, 1
|
||||||
// --> shuf (inselt undef, X, 0), undef, <0,0,0,undef>
|
// --> shuf (inselt undef, X, 0), poison, <0,0,0,undef>
|
||||||
unsigned NumMaskElts =
|
unsigned NumMaskElts =
|
||||||
cast<FixedVectorType>(Shuf->getType())->getNumElements();
|
cast<FixedVectorType>(Shuf->getType())->getNumElements();
|
||||||
SmallVector<int, 16> NewMask(NumMaskElts);
|
SmallVector<int, 16> NewMask(NumMaskElts);
|
||||||
|
@ -1973,8 +1973,8 @@ static Instruction *canonicalizeInsertSplat(ShuffleVectorInst &Shuf,
|
||||||
|
|
||||||
// Splat from element 0. Any mask element that is undefined remains undefined.
|
// Splat from element 0. Any mask element that is undefined remains undefined.
|
||||||
// For example:
|
// For example:
|
||||||
// shuf (inselt undef, X, 2), undef, <2,2,undef>
|
// shuf (inselt undef, X, 2), _, <2,2,undef>
|
||||||
// --> shuf (inselt undef, X, 0), undef, <0,0,undef>
|
// --> shuf (inselt undef, X, 0), poison, <0,0,undef>
|
||||||
unsigned NumMaskElts =
|
unsigned NumMaskElts =
|
||||||
cast<FixedVectorType>(Shuf.getType())->getNumElements();
|
cast<FixedVectorType>(Shuf.getType())->getNumElements();
|
||||||
SmallVector<int, 16> NewMask(NumMaskElts, 0);
|
SmallVector<int, 16> NewMask(NumMaskElts, 0);
|
||||||
|
|
Loading…
Reference in New Issue