Skip to content

Commit bde5b5e

Browse files
committed
Comments
1 parent 64e071b commit bde5b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14934,7 +14934,7 @@ SDValue DAGCombiner::visitAssertExt(SDNode *N) {
1493414934
}
1493514935

1493614936
// If we have (AssertZext (and (AssertSext X, iX), M), iY) and Y is smaller
14937-
// than X, and the And doesn't change the lower iY bits, we can move the
14937+
// than X, and the And doesn't change the lower iX bits, we can move the
1493814938
// AssertZext in front of the And and drop the AssertSext.
1493914939
if (Opcode == ISD::AssertZext && N0.getOpcode() == ISD::AND &&
1494014940
N0.hasOneUse() && N0.getOperand(0).getOpcode() == ISD::AssertSext &&
@@ -14943,7 +14943,7 @@ SDValue DAGCombiner::visitAssertExt(SDNode *N) {
1494314943
EVT BigA_AssertVT = cast<VTSDNode>(BigA.getOperand(1))->getVT();
1494414944
const APInt &Mask = N0.getConstantOperandAPInt(1);
1494514945
if (AssertVT.bitsLT(BigA_AssertVT) &&
14946-
Mask.countr_one() >= AssertVT.getScalarSizeInBits()) {
14946+
Mask.countr_one() >= BigA_AssertVT.getScalarSizeInBits()) {
1494714947
SDLoc DL(N);
1494814948
SDValue NewAssert =
1494914949
DAG.getNode(Opcode, DL, N->getValueType(0), BigA.getOperand(0), N1);

0 commit comments

Comments
 (0)