2

I use Xcode 4.5.2 with "Apple LLVM Compiler 4.1" (Clang).

I tried to compile a code which heavily relies on SSE intrinsics with AVX enabled (no _mm256* functions and no __m256 variables yet) and got slower code then I get when only SSE 4.2 is enabled.

Is there any reasonable explanation for this?

2
  • 1
    If you use any SSE library functions switching between VEC encoded SSE (as in AVX) and legacy SSE without using a vzeroupper may cause major stalls. Other than that it should be faster, becuase of the VEC encoded three operand instructions. I experienced a 10% gain in pure 128 bit code by recompiling for AVX. Nov 4, 2012 at 22:21
  • Thanks. How can I check if there are such switching functions in the code (maybe they come from a third party library that I use)?
    – Yoav
    Nov 4, 2012 at 22:27

1 Answer 1

3

Currently LLVM has opened bugs related to AVX performance, such as this one for example.

The full avx-related bugs list can be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.