From Hacker's Delight:
authorBill Wendling <isanbard@gmail.com>
Sun, 30 Nov 2008 05:01:05 +0000 (05:01 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 30 Nov 2008 05:01:05 +0000 (05:01 +0000)
commitf0e44c4d7afeb91f309ff277de83e3d9ce27e37f
treed0701269fd0842f8d8836012164ab7b7fb8a05f2
parent86f874d9bb3722e81381e832eb4c867f562e308c
From Hacker's Delight:

"For signed integers, the determination of overflow of x*y is not so simple. If
x and y have the same sign, then overflow occurs iff xy > 2**31 - 1. If they
have opposite signs, then overflow occurs iff xy < -2**31."

In this case, x == -1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60278 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp