diff options
author | Matthias Braun <matze@braunis.de> | 2015-05-18 23:18:13 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-05-18 23:18:13 +0000 |
commit | c5452347727a22474dbfea0a0b84348886ac3cd7 (patch) | |
tree | 6974ba02b96f3035ee551c544e9485f6bcbb1cef /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | cc0c0fc9263941a5bc2c50bf732ef34855653e3b (diff) | |
download | bcm5719-llvm-c5452347727a22474dbfea0a0b84348886ac3cd7.tar.gz bcm5719-llvm-c5452347727a22474dbfea0a0b84348886ac3cd7.zip |
Revert accidental change in r237633
llvm-svn: 237635
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index feeb1267e35..f714c391c67 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2122,7 +2122,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) { // fold (sdiv c1, c2) -> c1/c2 ConstantSDNode *N0C = isConstOrConstSplat(N0); ConstantSDNode *N1C = isConstOrConstSplat(N1); - if (N0C && N1C && N1C->isNullValue()) + if (N0C && N1C && !N1C->isNullValue()) return DAG.FoldConstantArithmetic(ISD::SDIV, SDLoc(N), VT, N0C, N1C); // fold (sdiv X, 1) -> X if (N1C && N1C->getAPIntValue() == 1LL) |