try release only

This commit is contained in:
Mike Klein 2014-06-25 12:35:19 -04:00
parent 729c6f0f29
commit 4809e4d796

View File

@ -332,8 +332,7 @@ const SkConvolutionFilter1D::ConvolutionFixed* SkConvolutionFilter1D::GetSingleF
// There's a bug somewhere in here with GCC autovectorization (-ftree-vectorize) on 32 bit builds.
// Dropping to -O2 disables -ftree-vectorize. http://skbug.com/2575
// Apparently this _crashes_ the NaCl toolchain compiler, so skip them.
#if defined(__i386) && SK_HAS_ATTRIBUTE(optimize) && !defined(SK_BUILD_FOR_NACL)
#if defined(__i386) && SK_HAS_ATTRIBUTE(optimize) && defined(SK_RELEASE)
__attribute__((optimize("O2")))
#endif
void BGRAConvolve2D(const unsigned char* sourceData,