Skip to content

Commit 70dd9cc

Browse files
committed
fix comment typo in ExpandFCOPYSIGN
1 parent 4647a46 commit 70dd9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,8 @@ SDValue SelectionDAGLegalize::ExpandFCOPYSIGN(SDNode *Node) const {
16571657
SDValue SignBit = DAG.getNode(ISD::AND, DL, IntVT, SignAsInt.IntValue,
16581658
SignMask);
16591659

1660-
// If FABS is legal transform FCOPYSIGN(x, y) => sign(x) ? -FABS(x) : FABS(X)
1660+
// If FABS is legal transform
1661+
// FCOPYSIGN(x, y) => SignBit(y) ? -FABS(x) : FABS(x)
16611662
EVT FloatVT = Mag.getValueType();
16621663
if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) &&
16631664
TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) {

0 commit comments

Comments
 (0)