summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 2f603628916..680f62fa91b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5966,15 +5966,6 @@ SDValue DAGCombiner::visitVSELECT(SDNode *N) {
return CV;
}
- // Fold (vselect (N0 xor AllOnes), N1, N2) -> (vselect N0, N2, N1)
- if (N0.getOpcode() == ISD::XOR &&
- ISD::isBuildVectorAllOnes(N0.getOperand(1).getNode()) &&
- TLI.getBooleanContents(N0.getValueType()) ==
- TargetLowering::ZeroOrNegativeOneBooleanContent) {
- EVT VT = N->getValueType(0);
- return DAG.getNode(ISD::VSELECT, DL, VT, N0.getOperand(0), N2, N1);
- }
-
return SDValue();
}
OpenPOWER on IntegriCloud