[PATCH] D99700: [LoopFlatten] Do not report CFG analyses as up-to-date
Yevgeny Rouban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 31 21:22:53 PDT 2021
yrouban created this revision.
yrouban added reviewers: SjoerdMeijer, dmgreen, TaWeiTu.
Herald added a subscriber: hiraditya.
yrouban requested review of this revision.
Herald added a project: LLVM.
Re-enabling PreservedCFGChecker (D91327 <https://reviews.llvm.org/D91327>) the LoopFlatten was found as reporting Preserved<CFGAnalyses> while changed CFG.
This fix just removes CFGAnalyses from the returned preserved analyses set.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99700
Files:
llvm/lib/Transforms/Scalar/LoopFlatten.cpp
Index: llvm/lib/Transforms/Scalar/LoopFlatten.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LoopFlatten.cpp
+++ llvm/lib/Transforms/Scalar/LoopFlatten.cpp
@@ -682,9 +682,7 @@
if (!Flatten(DT, LI, SE, AC, TTI))
return PreservedAnalyses::all();
- PreservedAnalyses PA;
- PA.preserveSet<CFGAnalyses>();
- return PA;
+ return PreservedAnalyses::none();
}
namespace {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99700.334584.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/aa53d0f5/attachment.bin>
More information about the llvm-commits
mailing list