[PATCH] D30161: [LoopUnrolling] Peel loops with invariant backedge Phi input

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 18:25:50 PST 2017


On Fri, Mar 3, 2017 at 11:55 AM, Michael Kuperstein <mkuper at google.com> wrote:
> Hm, right, thanks Eli!
>
> This ought to have the same threshold checks as the rest of loop unrolling -
> since we're only unrolling one iteration here, I guess it should just be
> "LoopSize <= UP.Threshold".

Should I revert the change for now?

>
> Michael
>
> On Fri, Mar 3, 2017 at 11:48 AM, Eli Friedman via Phabricator
> <reviews at reviews.llvm.org> wrote:
>>
>> efriedma added inline comments.
>>
>>
>> ================
>> Comment at: llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp:95
>> +      UP.PeelCount = 1;
>> +      return;
>> +    }
>> ----------------
>> Do we need to do some sort of threshold check here?  At first glance, it
>> looks like this will peel a loop of any size.
>>
>>
>> Repository:
>>   rL LLVM
>>
>> https://reviews.llvm.org/D30161
>>
>>
>>
>


More information about the llvm-commits mailing list