summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RefactoringTest.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-08-13 15:46:23 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-08-13 15:46:23 +0000
commit7f994ce294ae8e19ed363a62fb5b8787d0b85054 (patch)
tree72153d5492a0ff18b5d427a0dd5637a1bf053fb9 /clang/unittests/Tooling/RefactoringTest.cpp
parent97f0eae0a5adfd9f72b32184c2cb9d3e51237f06 (diff)
downloadbcm5719-llvm-7f994ce294ae8e19ed363a62fb5b8787d0b85054.tar.gz
bcm5719-llvm-7f994ce294ae8e19ed363a62fb5b8787d0b85054.zip
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 llvm-svn: 188280
Diffstat (limited to 'clang/unittests/Tooling/RefactoringTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud