[PATCH] D111282: Don't print uselistorder in --print-changed
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 7 14:49:48 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa4095df44cd4: Don't print uselistorder in --print-changed (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111282/new/
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
@@ -230,10 +230,9 @@
OS << *F;
}
-void printIR(raw_ostream &OS, const Module *M,
- bool ShouldPreserveUseListOrder = false) {
+void printIR(raw_ostream &OS, const Module *M) {
if (isFunctionInPrintList("*") || forcePrintModuleIR()) {
- M->print(OS, nullptr, ShouldPreserveUseListOrder);
+ M->print(OS, nullptr);
} else {
for (const auto &F : M->functions()) {
printIR(OS, &F);
@@ -323,21 +322,20 @@
/// Generic IR-printing helper that unpacks a pointer to IRUnit wrapped into
/// llvm::Any and does actual print job.
-void unwrapAndPrint(raw_ostream &OS, Any IR,
- bool ShouldPreserveUseListOrder = false) {
+void unwrapAndPrint(raw_ostream &OS, Any IR) {
if (!shouldPrintIR(IR))
return;
if (forcePrintModuleIR()) {
auto *M = unwrapModule(IR);
assert(M && "should have unwrapped module");
- printIR(OS, M, ShouldPreserveUseListOrder);
+ printIR(OS, M);
return;
}
if (any_isa<const Module *>(IR)) {
const Module *M = any_cast<const Module *>(IR);
- printIR(OS, M, ShouldPreserveUseListOrder);
+ printIR(OS, M);
return;
}
@@ -497,8 +495,7 @@
auto *M = unwrapModule(IR, /*Force=*/true);
assert(M && "Expected module to be unwrapped when forced.");
Out << "*** IR Dump At Start ***\n";
- M->print(Out, nullptr,
- /*ShouldPreserveUseListOrder=*/true);
+ M->print(Out, nullptr);
}
template <typename IRUnitT>
@@ -538,8 +535,7 @@
void IRChangedPrinter::generateIRRepresentation(Any IR, StringRef PassID,
std::string &Output) {
raw_string_ostream OS(Output);
- unwrapAndPrint(OS, IR,
- /*ShouldPreserveUseListOrder=*/true);
+ unwrapAndPrint(OS, IR);
OS.str();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111282.378016.patch
Type: text/x-patch
Size: 2002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211007/66329e69/attachment.bin>
More information about the llvm-commits
mailing list