[llvm-commits] [llvm] r51179 - /llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp

Owen Anderson resistor at mac.com
Fri May 16 10:44:10 PDT 2008


On May 16, 2008, at 9:22 AM, Chris Lattner wrote:

>
> On May 15, 2008, at 9:32 PM, Owen Anderson wrote:
>
>> Author: resistor
>> Date: Thu May 15 23:32:45 2008
>> New Revision: 51179
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=51179&view=rev
>> Log:
>> Clean ups for loop deletion based on Chris' feedback.
>>
>> Also, use SCEV to determine the trip count of the loop, which is
>> more powerful
>> and accurate that Loop::getTripCount.
>
> Doesn't indvars rewrite the exit condition of the loop such that
> Loop::getTripCount returns the right thing?
>

I don't know, but in several of the testcases in the regression  
testsuite, using SCEV was able to solve tripcounts that the other  
method couldn't.

--Owen



More information about the llvm-commits mailing list