[Bug c++/35117] Vectorization on power PC

irar at il dot ibm dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 7 12:55:00 GMT 2008



------- Comment #9 from irar at il dot ibm dot com  2008-02-07 12:54 -------
(In reply to comment #8)
> {
>         float *pTempSumPhase_Temp_cre_angle = (float*) malloc (sizeof(float)
> *m_nSamples);
>         float *pTempSum2Phase_Temp_cre_angle = (float*) malloc (sizeof(float)
> *m_nSamples);
> 
>         memset(pTempSumPhase_Temp_cre_angle,0,sizeof(float)* m_nSamples);
>         memset(pTempSum2Phase_Temp_cre_angle,0,sizeof(float)* m_nSamples);

Maybe the problem is that they escape (call to memset)...
The alias analysis fails to distinguish between these two pointers and the
vectorizer has to create runtime checks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35117



More information about the Gcc-bugs mailing list