Hal Finkel 033e0a94cb Don't crash in SE dealing with ashr x, -1
ScalarEvolution::getSignedRange uses ComputeNumSignBits from ValueTracking on
ashr instructions. ComputeNumSignBits can return zero, but this case was not
handled correctly by the code in getSignedRange which was calling:
  APInt::getSignedMinValue(BitWidth).ashr(NS - 1)
with NS = 0, resulting in an assertion failure in APInt::ashr.

Now, we just return the conservative result (as with NS == 1).

Another bug found by llvm-stress.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185955 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-09 18:16:16 +00:00
..
2013-07-01 19:42:46 +00:00
2013-03-27 06:52:27 +00:00
2012-12-25 17:22:53 +00:00
2013-07-03 17:59:07 +00:00
2013-03-21 20:28:52 +00:00
2013-04-11 12:32:23 +00:00
2013-04-05 23:29:01 +00:00
2012-12-20 17:47:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-02-21 17:12:27 +00:00
2013-04-01 15:58:15 +00:00
2012-08-28 02:10:15 +00:00
2013-01-28 18:36:58 +00:00
2012-08-28 02:10:33 +00:00
2013-04-27 00:43:16 +00:00
2013-02-21 00:38:25 +00:00
2013-02-20 20:41:42 +00:00
2013-03-12 15:18:14 +00:00
2013-03-09 18:25:40 +00:00
2013-02-20 22:43:03 +00:00
2012-12-19 15:49:14 +00:00