Skip to content

Commit

Permalink
[DAGCombine] Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcxzyw committed Apr 11, 2024
1 parent de06d42 commit 728dad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9986,7 +9986,7 @@ SDValue DAGCombiner::visitSHL(SDNode *N) {
TLI.isOperationLegalOrCustom(ISD::MUL, VT)) {
SDValue Y = N1.getOperand(0);
SDLoc DL(N);
SDValue NegY = DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, DL, VT), Y);
SDValue NegY = DAG.getNegative(Y, DL, VT);
SDValue And = DAG.getNode(ISD::AND, DL, VT, Y, NegY);
return DAG.getNode(ISD::MUL, DL, VT, And, N0);
}
Expand Down

0 comments on commit 728dad3

Please sign in to comment.