This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35117] Vectorization on power PC
- From: "irar at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2008 12:54:43 -0000
- Subject: [Bug c++/35117] Vectorization on power PC
- References: <bug-35117-15734@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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