diff options
| author | Balaram Makam <bmakam@codeaurora.org> | 2016-07-05 20:24:05 +0000 |
|---|---|---|
| committer | Balaram Makam <bmakam@codeaurora.org> | 2016-07-05 20:24:05 +0000 |
| commit | d4acd7ed1093fdf8d12d218212373c761df682c3 (patch) | |
| tree | f83f626e7c85dc04819e9c60adb9075dc6458f55 /llvm/lib/CodeGen | |
| parent | bec6543d175670fe962d144c0aafcc9aa168fcb8 (diff) | |
| download | bcm5719-llvm-d4acd7ed1093fdf8d12d218212373c761df682c3.tar.gz bcm5719-llvm-d4acd7ed1093fdf8d12d218212373c761df682c3.zip | |
Revert r259387: "AArch64: Implement missed conditional compare sequences."
This reverts commit r259387 because it inserts illegal code after legalization
in some backends where i64 OR type is illegal for example.
llvm-svn: 274573
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 6e6dfd855f8..f07bfd88019 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1735,7 +1735,7 @@ SDValue DAGCombiner::visitADD(SDNode *N) { return SDValue(N, 0); // fold (a+b) -> (a|b) iff a and b share no bits. - if ((!LegalOperations || TLI.isOperationLegalOrCustom(ISD::OR, VT)) && + if ((!LegalOperations || TLI.isOperationLegal(ISD::OR, VT)) && VT.isInteger() && !VT.isVector() && DAG.haveNoCommonBitsSet(N0, N1)) return DAG.getNode(ISD::OR, SDLoc(N), VT, N0, N1); @@ -6445,7 +6445,7 @@ SDValue DAGCombiner::visitZERO_EXTEND(SDNode *N) { isa<LoadSDNode>(N0.getOperand(0)) && N0.getOperand(1).getOpcode() == ISD::Constant && TLI.isLoadExtLegal(ISD::ZEXTLOAD, VT, N0.getValueType()) && - (!LegalOperations && TLI.isOperationLegalOrCustom(N0.getOpcode(), VT))) { + (!LegalOperations && TLI.isOperationLegal(N0.getOpcode(), VT))) { LoadSDNode *LN0 = cast<LoadSDNode>(N0.getOperand(0)); if (LN0->getExtensionType() != ISD::SEXTLOAD && LN0->isUnindexed()) { bool DoXform = true; |

