]> granicus.if.org Git - clang/commit
Revert r189440 - Disable loop vectorizer unrolling when no unrolling requested
authorHal Finkel <hfinkel@anl.gov>
Wed, 28 Aug 2013 05:21:45 +0000 (05:21 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 28 Aug 2013 05:21:45 +0000 (05:21 +0000)
commitcf5691edd7460833b6f823dbe5b57e32fb7a93ad
tree6755960d301aef891445075512819c42e019a52b
parentf95b589220c9b2d28598a1e47831e75e890b7c80
Revert r189440 - Disable loop vectorizer unrolling when no unrolling requested

As Chandler pointed out, we should not be using -backend-option because this
will cause crashes for users of the tooling interface, etc. A better way to fix
this will be to provide the unrolling pass-manager flag to the loop vectorizer
directly.

Original commit message:

Disable loop vectorizer unrolling when no unrolling requested

In addition to the regular loop unrolling transformation, the loop vectorizer
can also unroll loops. If no unrolling has specifically been requested (by
-fno-unroll-loops), and the loop vectorizer will be used, then add the backend
option to (also) prevent the loop vectorizer from unrolling loops.

I confirmed with Nadav (off list) that disabling vectorizer loop unrolling when
-fno-unroll-loops is provided is the desired behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189441 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/clang_f_opts.c