Dan Gohman 8078b8bddc Use a sign-extend instead of a zero-extend when promoting a
trip count value when the original loop iteration condition is
signed and the canonical induction variable won't undergo signed
overflow. This isn't required for correctness; it just preserves
more information about original loop iteration values.

Add a getTruncateOrSignExtend method to ScalarEvolution,
following getTruncateOrZeroExtend.

llvm-svn: 64918
2009-02-18 17:22:41 +00:00
..
2008-11-24 21:27:20 +00:00
2009-02-06 06:19:06 +00:00
2008-10-27 06:56:35 +00:00
2008-11-04 23:02:39 +00:00
2008-06-12 20:55:39 +00:00