diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-17 10:40:03 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-17 10:40:03 +0000 |
commit | d5ae5b018644345ba0fc48a47030ef1105e1abfd (patch) | |
tree | d369ca3c84d4e1e93c9f10214fdb4af56a607007 /lib | |
parent | e5a694ab578416d8d280836937c7d2714b1a83e6 (diff) | |
download | external_llvm-d5ae5b018644345ba0fc48a47030ef1105e1abfd.zip external_llvm-d5ae5b018644345ba0fc48a47030ef1105e1abfd.tar.gz external_llvm-d5ae5b018644345ba0fc48a47030ef1105e1abfd.tar.bz2 |
DAGCombiner: Partially revert r192795, getNOT was fixed not to create illegal constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 78543a4..15b4ddc 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3576,7 +3576,7 @@ SDValue DAGCombiner::visitXOR(SDNode *N) { } // fold (xor (and x, y), y) -> (and (not x), y) if (N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() && - N0->getOperand(1) == N1 && isTypeLegal(VT.getScalarType())) { + N0->getOperand(1) == N1) { SDValue X = N0->getOperand(0); SDValue NotX = DAG.getNOT(SDLoc(X), X, VT); AddToWorkList(NotX.getNode()); |