diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-01-11 04:59:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-01-11 04:59:25 +0000 |
commit | 7af39837a9b097eefc66b49c047c057f32072818 (patch) | |
tree | 3d128626e29ffaeb184632b1047d06eb0dc2b062 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | e2aaf3a35e2339be724ee49a1185e0023b998b8e (diff) | |
download | bcm5719-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.cpp | 9 |
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(); } |