Forums - No performance improvement when using restrict keyword for array parameters

1 post / 0 new
No performance improvement when using restrict keyword for array parameters
Kiran.Chandramohan
Join Date: 6 May 14
Posts: 9
Posted: Fri, 2015-01-30 03:48

Hi,

I was performing some experiments with matrix multiplication. Usually when I pass the information that the array pointer parameters cannot alias through the restrict keyword, I get a big jump in performance. I have observed this performance improvement on the TI C64X+ DSP. But I dont get this performance improvement with the Hexagon DSP. Is this expected behaviour ?

Ideally I would have expected that with the knowledge that the array pointers cannot alias the compiler can schedule better.

--Kiran

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.