This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Restrict pointers slower than un-restricted?

I am optimizing some code and noted that when I used *restrict on some pointers to matrix elements that the code actually slowed down.  Processor is a DM6435 and I have optimizations set for max speed and file level with no space optimizations enabled.  The result is very unexpected and leads me to question other code we have that uses restricted pointers.  Is there some known bug in the compiler for these optimizations?  I can see the speed staying the same if the compiler already optimized but it shouldn't slow down.

 

Eric Bryan