summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-11-17 10:40:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-11-17 10:40:03 +0000
commitbb1dd73d3e4160004d899d08817fdc9001dbcab3 (patch)
tree52fd8159fda883f14083d4b7ab060abf4517a6b3 /llvm/lib/CodeGen
parent5d3fda728de07ad5d5627423c7682d06f6a7f1bd (diff)
downloadbcm5719-llvm-bb1dd73d3e4160004d899d08817fdc9001dbcab3.tar.gz
bcm5719-llvm-bb1dd73d3e4160004d899d08817fdc9001dbcab3.zip
DAGCombiner: Partially revert r192795, getNOT was fixed not to create illegal constants.
llvm-svn: 194959
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 78543a4113d..15b4ddc0338 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud