[LoopVectorizer] Fix bailing-out condition for OptForSize case.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 24 Jun 2015 17:26:24 +0000 (17:26 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 24 Jun 2015 17:26:24 +0000 (17:26 +0000)
commitbaf8f6a261004f35607bbe96c460f264c215b22b
tree7b5fbef116ba762b330e90f479b9ca5b6dc866ec
parent9a5f962059b7f09f9cc037d13eb099524112d181
[LoopVectorizer] Fix bailing-out condition for OptForSize case.

With option OptForSize enabled, the Loop Vectorizer is not supposed to
create tail loop. The condition checking that was invalid and was not
matching to the comment above.

Patch by Marianne Mailhot-Sarrasin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240556 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/optsize.ll [new file with mode: 0644]