DSPRelated.com
Forums

RE: [c6x] loop contains control code

Started by piyush kaul May 29, 2004
Hi Sankaran,

I hope you don't mean that the compiler won't generate
software pipeline when it doesn't know the number of
times the loop will iterate? If yes, then you are
certainly wrong. I have lots of code where the loop
count(trip count) is not explicitly defined or known
beforehand, but the compiler still generates software
pipline.

Yong,
I think that your original guess is almost certainly
right. It is impossible for the compiler to generate
software pipeline in case of branching withing the
loop. I you are coding in linear asm, try using
condition execution instead if possible.

Regards
Piyush
--- sankaran <> wrote:
> This implies that the number of times the loop is
> going to iterate is
> not known. If possible please share so that I can
> provide better help.
>
> Regds
> JS
>
> -----Original Message-----
> From: Yong Yang [mailto:]
> Sent: Friday, May 28, 2004 6:29 AM
> To: ;
> Subject: [c6x] loop contains control code
>
> Hi all
>
> I am software piplining some loops. One feedback in
> the asm file reads,
> "Disqualified loop: loop contains control code".
> What does it mean? Is
> it because the loop has if statement?
>
> Thank you
>
> Yong > ---------------------------------
>