This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: restrict keyword has no effect?
On Jan 23, 2008 8:18 AM, Bingfeng Mei <bmei@broadcom.com> wrote:
> Hello,
> We are porting GCC 4.2.1 for our VLIW processor. To improve performance,
> support of restrict keyword is imperative. From what I learn from GCC
> documentation, "restrict" should be well supported since GCC3. Somehow,
> I found it doesn't improve schedule even for simple example.
> Any hint to produce efficient code with "restrict" keyword? Thank in
> advance.
You should try the trunk which has improved restrict support via the
merging of the pointer plus infrastructure.
There is still more to support restrict after the tree-ssa merge but
those are waiting until 4.4.
Thanks,
Andrew Pinski