Skip to content

Commit 2eaa979

Browse files
committed
address comment
1 parent f905090 commit 2eaa979

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16266,8 +16266,8 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
1626616266
// Finally, recreate the node, it's operands were updated to use
1626716267
// frozen operands, so we just need to use it's "original" operands.
1626816268
SmallVector<SDValue> Ops(N0->ops());
16269-
// Special-handle ISD::UNDEF, ISD::POISON, each single one of them can be it's
16270-
// own thing.
16269+
// TODO: ISD::UNDEF and ISD::POISON should get separate handling, but best
16270+
// leave for a future patch.
1627116271
for (SDValue &Op : Ops) {
1627216272
if (Op.isUndef())
1627316273
Op = DAG.getFreeze(Op);

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6262,7 +6262,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
62626262
if (N1.isUndef())
62636263
// sext(undef) = 0, because the top bits will all be the same.
62646264
return getConstant(0, DL, VT);
6265-
62666265
break;
62676266
case ISD::ZERO_EXTEND:
62686267
assert(VT.isInteger() && N1.getValueType().isInteger() &&

0 commit comments

Comments
 (0)