Only use custom SSE FMUL and FMAC with non-clang compilers.
commit657073100664172d14d61e92e1e4c36fc7024e5d
authordalecurtis <dalecurtis@chromium.org>
Mon, 29 Sep 2014 21:17:39 +0000 (29 14:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 21:18:54 +0000 (29 21:18 +0000)
treec498b4397825857bd8a7b517e998693605a4da6a
parentb91e7865b4b62add4e16b5e18becf12316beb0db
Only use custom SSE FMUL and FMAC with non-clang compilers.

clang's auto-vectorized C version performs better according to the
Chrome Performance Dashboard.  Searching back through the logs, this
occurred when we switched over to clang by default.

We could try to microoptimize further, but it's less of a maintenance
burden to just let the compiler do its thing!

The main reason the clang version is faster is it does 2x 128bit
operations per loop. Simply copying these optimization yields ~97%
similar performance, but  the SIMD code a bit gnarlier. As such I
choose to simply use the C variant when clang is present.

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/599693002

Cr-Commit-Position: refs/heads/master@{#297268}
media/base/vector_math.cc