For PR1248:
authorReid Spencer <rspencer@reidspencer.com>
Wed, 21 Mar 2007 23:19:50 +0000 (23:19 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 21 Mar 2007 23:19:50 +0000 (23:19 +0000)
commite4e40030325ecfb8c450ce45aa961071123df54d
tree266231544c34bb5c01b9f041b4439e65c217a5d6
parent3a3aacfe10cc6a96de7357e07dcf8b3f0e5f63bb
For PR1248:
* Fix some indentation and comments in InsertRangeTest
* Add an "IsSigned" parameter to AddWithOverflow and make it handle signed
  additions. Also, APIntify this function so it works with any bitwidth.
* For the icmp pred ([us]div %X, C1), C2 transforms, exit early if the
  div instruction's RHS is zero.
* Finally, for icmp pred (sdiv %X, C1), -C2, fix an off-by-one error. The
  HiBound needs to be incremented in order to get the range test correct.

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