summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/HeaderMap.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2018-02-10 00:07:45 +0000
committerMircea Trofin <mtrofin@google.com>2018-02-10 00:07:45 +0000
commit73b96d6dcf15a511bb0d2bfb14a7c18be487b2b0 (patch)
tree042c7f96c3c026f79e66fc49050eeaa2f9ffa287 /clang/lib/Lex/HeaderMap.cpp
parent2a639858be9098e56708a22ba84cde1f0bf0b195 (diff)
downloadbcm5719-llvm-73b96d6dcf15a511bb0d2bfb14a7c18be487b2b0.tar.gz
bcm5719-llvm-73b96d6dcf15a511bb0d2bfb14a7c18be487b2b0.zip
[LV] Fix analyzeInterleaving when -pass-remarks enabled
Summary: If -pass-remarks=loop-vectorize, atomic ops will be seen by analyzeInterleaving(), even though canVectorizeMemory() == false. This is because we are requesting extra analysis instead of bailing out. In such a case, we end up with a Group in both Load- and StoreGroups, and then we'll try to access freed memory when traversing LoadGroups after having had released the Group when iterating over StoreGroups. The fix is to include mayWriteToMemory() when validating that two instructions are the same kind of memory operation. Reviewers: mssimpso, davidxl Reviewed By: davidxl Subscribers: hsaito, fhahn, llvm-commits Differential Revision: https://reviews.llvm.org/D43064 llvm-svn: 324786
Diffstat (limited to 'clang/lib/Lex/HeaderMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud