We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3002da1 commit 4eeb310Copy full SHA for 4eeb310
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2645,14 +2645,6 @@ SDValue DAGCombiner::visitPTRADD(SDNode *N) {
2645
assert(PtrVT == IntVT &&
2646
"PTRADD with different operand types is not supported");
2647
2648
- // fold (ptradd undef, y) -> undef
2649
- if (N0.isUndef())
2650
- return N0;
2651
-
2652
- // fold (ptradd x, undef) -> undef
2653
- if (N1.isUndef())
2654
- return DAG.getUNDEF(PtrVT);
2655
2656
// fold (ptradd x, 0) -> x
2657
if (isNullConstant(N1))
2658
return N0;
0 commit comments