[PATCH] D111282: Don't print uselistorder in --print-changed

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 16:52:45 PDT 2021


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

Using uselistorders is fairly niche, it shouldn't be on by default and mostly just clutters the output.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111282

Files:
  llvm/lib/Passes/StandardInstrumentations.cpp


Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -498,7 +498,7 @@
   assert(M && "Expected module to be unwrapped when forced.");
   Out << "*** IR Dump At Start ***\n";
   M->print(Out, nullptr,
-           /*ShouldPreserveUseListOrder=*/true);
+           /*ShouldPreserveUseListOrder=*/false);
 }
 
 template <typename IRUnitT>
@@ -539,7 +539,7 @@
                                                 std::string &Output) {
   raw_string_ostream OS(Output);
   unwrapAndPrint(OS, IR,
-                 /*ShouldPreserveUseListOrder=*/true);
+                 /*ShouldPreserveUseListOrder=*/false);
   OS.str();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111282.377725.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/e9f2dee0/attachment.bin>


More information about the llvm-commits mailing list