| commit | f40711637f727a07c6265f8cf3194a2bc34ca2a7 | [log] [tgz] | 
|---|---|---|
| author | Reid Spencer <rspencer@reidspencer.com> | Wed Mar 21 23:19:50 2007 +0000 | 
| committer | Reid Spencer <rspencer@reidspencer.com> | Wed Mar 21 23:19:50 2007 +0000 | 
| tree | 8791692bfae69713da16264d4d012d4d72eed8c4 | |
| parent | 925e8aa370f243a879d29a2a101d90f4da2f7b7a [diff] | 
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. llvm-svn: 35247