diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-13 15:46:23 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-13 15:46:23 +0000 |
commit | 99662a156055de9f46b3cababbf7032e68ed961b (patch) | |
tree | a4eb9c54cb3ad1e322ddeb26ddac154f5fb5b27e /unittests/Tooling | |
parent | 9d02807c3ea9782442b98201df68294cd7cd7313 (diff) | |
download | clang-99662a156055de9f46b3cababbf7032e68ed961b.tar.gz clang-99662a156055de9f46b3cababbf7032e68ed961b.tar.bz2 clang-99662a156055de9f46b3cababbf7032e68ed961b.tar.xz |
Move logic to enable the vectorizer to clang
We used to decide whether to really vectorize depending on the optimization
level in PassManagerBuilder.
This patch moves this decision to the clang driver. We look at the optimization
level and whether the f(no-)vectorize is set and decide whether to vectorize.
This allows us to simplify the logic in PassManagerBuilder to just a check for
whether the vectorizer should run or not.
We now do the right thing for:
$ clang -O1 -fvectorize
$ clang -fno-vectorize -O3
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling')
0 files changed, 0 insertions, 0 deletions