diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-07-03 14:11:32 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-07-03 14:11:32 +0000 |
| commit | 74cc4cfa9483477e6791c721a66ba56c0f5e3916 (patch) | |
| tree | 761d0901a44d60500f49b8810aed15bd548f6037 /llvm/lib/CodeGen | |
| parent | a50054829dbf2a43d1174c05a0ba69de9099641d (diff) | |
| download | bcm5719-llvm-74cc4cfa9483477e6791c721a66ba56c0f5e3916.tar.gz bcm5719-llvm-74cc4cfa9483477e6791c721a66ba56c0f5e3916.zip | |
[DAGCombiner] visitSDIV - Permit MIN_SIGNED_VALUE in pow2 vector codegen
Now that D45806 has landed, we can re-enable support for MIN_SIGNED_VALUE in the sdiv by pow2-constant code
llvm-svn: 336198
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 7c372c7ce43..f7278537886 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3051,8 +3051,6 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) { auto IsPowerOfTwo = [](ConstantSDNode *C) { if (C->isNullValue() || C->isOpaque()) return false; - if (C->getAPIntValue().isMinSignedValue()) - return false; if (C->getAPIntValue().isPowerOf2()) return true; if ((-C->getAPIntValue()).isPowerOf2()) |

