<div dir="ltr">Hi Michael,<div><br></div><div>Thank you very much! </div><div>I will try this.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Yaduveer</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 12:11 AM, Michael Zolotukhin <span dir="ltr"><<a href="mailto:mzolotukhin@apple.com" target="_blank">mzolotukhin@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yaduveer,<br>
<br>
As far as I remember, unroller in LoopVectorizer pass does what you want to achieve (look for a message "LV: Trying to at least unroll the loops.” to locate this in the code).<br>
<br>
Michael<br>
<div><div><br>
> On May 2, 2015, at 9:00 AM, yaduveer singh <<a href="mailto:yaduveer99@gmail.com" target="_blank">yaduveer99@gmail.com</a>> wrote:<br>
><br>
> Hi Zhoulai,<br>
><br>
> I am trying to modify "LoopUnrollPass" in llvm which produces multiple<br>
> copies of loop equal to the loop unroll factor.Currently, using multicore<br>
> architecture, say 3 for example and the execution goes like:<br>
><br>
> for 3 cores if there are 9 iterations of loop<br>
> core          instruction<br>
> 1                   0,3,6<br>
> 2                    1,4,7<br>
> 3                    2,5,8<br>
><br>
> But I want to to modify such that it can execute in following way:<br>
><br>
> core          instruction<br>
> 1                   0,1,2<br>
> 2                   3,4,5<br>
> 3                   6,7,8<br>
><br>
> I am not able to get where to modify for this. I tried creating a sample<br>
> pass using original LoopUnrollPass code and run "make", I received<br>
> following error:<br>
><br>
> loopunrollp.cpp:210:1: error: ‘void<br>
> llvm::initializeLoopUnrollpPass(llvm::PassRegistry&)’ should have been<br>
> declared inside ‘llvm’<br>
> /bin/rm: cannot remove<br>
> `/home/yaduveer/RP/LLVM/llvm/lib/Transforms/loopunrollp/Debug+Asserts/loopunrollp.d.tmp':<br>
> No such file or directory<br>
><br>
><br>
> Please help<br>
><br>
> Thanks,<br>
> Yaduveer<br>
><br>
</div></div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote></div><br></div></div>