forked from OSchip/llvm-project
[X86][SSE] combineShuffleWithHorizOp - avoid unnecessary subtraction. NFCI.
We can safely replace ((M - NumElts) % NumEltsPerLane) with (M % NumEltsPerLane) as the modulo result will be the same.
This commit is contained in:
parent
c135744b1d
commit
fe1f36986b
|
@ -35900,7 +35900,7 @@ static SDValue combineShuffleWithHorizOp(SDValue N, MVT VT, const SDLoc &DL,
|
|||
(M % NumEltsPerLane) >= NumHalfEltsPerLane)
|
||||
M -= NumHalfEltsPerLane;
|
||||
if (NumElts <= M && BC1.getOperand(0) == BC1.getOperand(1) &&
|
||||
((M - NumElts) % NumEltsPerLane) >= NumHalfEltsPerLane)
|
||||
(M % NumEltsPerLane) >= NumHalfEltsPerLane)
|
||||
M -= NumHalfEltsPerLane;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue