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 30bb17d commit 80a86baCopy full SHA for 80a86ba
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2644,14 +2644,6 @@ SDValue DAGCombiner::visitPTRADD(SDNode *N) {
2644
assert(PtrVT == IntVT &&
2645
"PTRADD with different operand types is not supported");
2646
2647
- // fold (ptradd undef, y) -> undef
2648
- if (N0.isUndef())
2649
- return N0;
2650
-
2651
- // fold (ptradd x, undef) -> undef
2652
- if (N1.isUndef())
2653
- return DAG.getUNDEF(PtrVT);
2654
2655
// fold (ptradd x, 0) -> x
2656
if (isNullConstant(N1))
2657
return N0;
0 commit comments