summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-01-11 04:59:25 +0000
committerCraig Topper <craig.topper@gmail.com>2017-01-11 04:59:25 +0000
commit7af39837a9b097eefc66b49c047c057f32072818 (patch)
tree3d128626e29ffaeb184632b1047d06eb0dc2b062 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parente2aaf3a35e2339be724ee49a1185e0023b998b8e (diff)
downloadbcm5719-llvm-7af39837a9b097eefc66b49c047c057f32072818.tar.gz
bcm5719-llvm-7af39837a9b097eefc66b49c047c057f32072818.zip
Revert r291645 "[DAGCombiner] Teach DAG combiner to fold (vselect (N0 xor AllOnes), N1, N2) -> (vselect N0, N2, N1). Only do this if the target indicates its vector boolean type is ZeroOrNegativeOneBooleanContent."
Some test appears to be hanging on the build bots. llvm-svn: 291650
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-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