[PATCH] Add zero-overhead looping for xtensa backend

Sterling Augustine augustine.sterling@gmail.com
Mon Jan 13 17:24:00 GMT 2014


On Thu, Jan 9, 2014 at 7:48 PM, Yangfei (Felix) <felix.yang@huawei.com> wrote:
> And here is the xtensa configuration tested (include/xtensa-config.h):
>
> #define XCHAL_HAVE_BE           0
> #define XCHAL_HAVE_LOOPS                1


Hi Felix,

I like this patch, and expect I will approve it. However, I would like
you to do two more things before I do:

1. Ensure it doesn't generate zcl's when:

#define XCHAL_HAVE_LOOPS 0

2. Ensure it doesn't produce loops bodies that contain ret, retw,
ret.n or retw.n as the last instruction. It might be easier to just
disallow them in loop bodies entirely though.

Thanks!



More information about the Gcc-patches mailing list