commit | 5f5939c14c7933d3a5295906a82497f7a14f6dfd | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Wed Jul 02 06:07:09 2014 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Wed Jul 02 06:07:09 2014 +0000 |
tree | 52aee5a1aebde8e2372c7ec9d22816258d7f382f | |
parent | 90fdedc064a473b7206d0ff8c8db2ed79a9af135 [diff] |
InstCombine: Don't turn -(x/INT_MIN) -> x/INT_MIN It is not safe to negate the smallest signed integer, doing so yields the same number back. This fixes PR20186. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212164 91177308-0d34-0410-b5e6-96231b3b80d8