[llvm] r282820 - [LV] Port the last opt remark in Hints to the new streaming interface
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 29 17:29:26 PDT 2016
Author: anemet
Date: Thu Sep 29 19:29:25 2016
New Revision: 282820
URL: http://llvm.org/viewvc/llvm-project?rev=282820&view=rev
Log:
[LV] Port the last opt remark in Hints to the new streaming interface
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=282820&r1=282819&r2=282820&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Thu Sep 29 19:29:25 2016
@@ -1278,11 +1278,12 @@ public:
// FIXME: Add interleave.disable metadata. This will allow
// vectorize.disable to be used without disabling the pass and errors
// to differentiate between disabled vectorization and a width of 1.
- ORE.emitOptimizationRemarkAnalysis(
- vectorizeAnalysisPassName(), L,
- "loop not vectorized: vectorization and interleaving are explicitly "
- "disabled, or vectorize width and interleave count are both set to "
- "1");
+ ORE.emit(OptimizationRemarkAnalysis(vectorizeAnalysisPassName(),
+ "AllDisabled", L->getStartLoc(),
+ L->getHeader())
+ << "loop not vectorized: vectorization and interleaving are "
+ "explicitly disabled, or vectorize width and interleave "
+ "count are both set to 1");
return false;
}
More information about the llvm-commits
mailing list