aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorAyal Zaks <ayal.zaks@intel.com>2018-11-02 09:16:12 +0000
committerAyal Zaks <ayal.zaks@intel.com>2018-11-02 09:16:12 +0000
commit45a3ca7be7f2edf006ce2da66360483ee28b54b1 (patch)
tree8eda60a6d616a1bb8b4bfb864d7f99edc9100a19 /clang/lib/Lex/ModuleMap.cpp
parent5497f6580e6e6a80cae07eac768f6217dcb3b3ab (diff)
downloadllvm-45a3ca7be7f2edf006ce2da66360483ee28b54b1.zip
llvm-45a3ca7be7f2edf006ce2da66360483ee28b54b1.tar.gz
llvm-45a3ca7be7f2edf006ce2da66360483ee28b54b1.tar.bz2
[LV] Avoid vectorizing loops under opt for size that involve SCEV checks
Fix PR39417, PR39497 The loop vectorizer may generate runtime SCEV checks for overflow and stride==1 cases, leading to execution of original scalar loop. The latter is forbidden when optimizing for size. An assert introduced in r344743 triggered the above PR's showing it does happen. This patch fixes this behavior by preventing vectorization in such cases. Differential Revision: https://reviews.llvm.org/D53612 llvm-svn: 345959
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions