diff options
author | Adam Nemet <anemet@apple.com> | 2016-09-29 20:17:37 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-09-29 20:17:37 +0000 |
commit | 556a06b1ee591a812359ef2a42a5a32a4f9d6a05 (patch) | |
tree | d8deb93a99d8dda41dcf3564451275baf3a046f6 /llvm/lib/Transforms | |
parent | c1d21817d1541bf6d2f443862d5cd88ddabacef5 (diff) | |
download | bcm5719-llvm-556a06b1ee591a812359ef2a42a5a32a4f9d6a05.tar.gz bcm5719-llvm-556a06b1ee591a812359ef2a42a5a32a4f9d6a05.zip |
Revert "[LAA, LV] Port to new streaming interface for opt remarks. Update LV"
This reverts commit r282758.
There are some clang failures I haven't seen.
llvm-svn: 282759
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index fe37c19c230..bc92441250f 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -5505,12 +5505,9 @@ void LoopVectorizationLegality::collectLoopUniforms() { bool LoopVectorizationLegality::canVectorizeMemory() { LAI = &(*GetLAA)(*TheLoop); InterleaveInfo.setLAI(LAI); - const OptimizationRemarkAnalysis *LAR = LAI->getReport(); - if (LAR) { - OptimizationRemarkAnalysis VR(Hints->vectorizeAnalysisPassName(), - "loop not vectorized: ", *LAR); - ORE->emit(VR); - } + auto &OptionalReport = LAI->getReport(); + if (OptionalReport) + emitAnalysis(VectorizationReport(*OptionalReport)); if (!LAI->canVectorizeMemory()) return false; |