[PATCH] D119914: [Debugify] Mark mir-check-debugify change nothing of input

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 20:57:15 PST 2022


skan created this revision.
Herald added a subscriber: hiraditya.
skan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119914

Files:
  llvm/lib/CodeGen/MachineCheckDebugify.cpp


Index: llvm/lib/CodeGen/MachineCheckDebugify.cpp
===================================================================
--- llvm/lib/CodeGen/MachineCheckDebugify.cpp
+++ llvm/lib/CodeGen/MachineCheckDebugify.cpp
@@ -106,8 +106,7 @@
 
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<MachineModuleInfoWrapperPass>();
-    AU.addPreserved<MachineModuleInfoWrapperPass>();
-    AU.setPreservesCFG();
+    AU.setPreservesAll();
   }
 
   static char ID; // Pass identification.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119914.409145.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/99ae3324/attachment-0001.bin>


More information about the llvm-commits mailing list