[llvm-commits] [llvm] r70421 - in /llvm/trunk: lib/Analysis/ScalarEvolution.cpp test/Analysis/ScalarEvolution/sext-iv-0.ll test/Analysis/ScalarEvolution/sext-iv-1.ll

Chris Lattner clattner at apple.com
Wed Apr 29 17:00:56 PDT 2009


On Apr 29, 2009, at 3:28 PM, Dan Gohman wrote:

> Author: djg
> Date: Wed Apr 29 17:28:28 2009
> New Revision: 70421
>
> URL: http://llvm.org/viewvc/llvm-project?rev=70421&view=rev
> Log:
> Generalize the cast-of-addrec folding to handle folding of SCEVs like
> (sext i8 {-128,+,1} to i64) to i64 {-128,+,1}, where the iteration
> crosses from negative to positive, but is still safe if the trip
> count is within range.

Does this fix the rest of PR1301?

-Chris



More information about the llvm-commits mailing list