[llvm] r347432 - [PM] correcting return value for new-pass-manager version of Scalarizer
Fedor Sergeev via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 14:01:20 PST 2018
Author: fedor.sergeev
Date: Wed Nov 21 14:01:19 2018
New Revision: 347432
URL: http://llvm.org/viewvc/llvm-project?rev=347432&view=rev
Log:
[PM] correcting return value for new-pass-manager version of Scalarizer
Obvious mistake missed during D54695 review.
Modified:
llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp?rev=347432&r1=347431&r2=347432&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp Wed Nov 21 14:01:19 2018
@@ -818,6 +818,6 @@ PreservedAnalyses ScalarizerPass::run(Fu
unsigned ParallelLoopAccessMDKind =
M.getContext().getMDKindID("llvm.mem.parallel_loop_access");
ScalarizerVisitor Impl(ParallelLoopAccessMDKind);
- (void)Impl.visit(F);
- return PreservedAnalyses::none();
+ bool Changed = Impl.visit(F);
+ return Changed ? PreservedAnalyses::none() : PreservedAnalyses::all();
}
More information about the llvm-commits
mailing list