diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp --- a/llvm/lib/Passes/StandardInstrumentations.cpp +++ b/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 @@ -539,7 +539,7 @@ std::string &Output) { raw_string_ostream OS(Output); unwrapAndPrint(OS, IR, - /*ShouldPreserveUseListOrder=*/true); + /*ShouldPreserveUseListOrder=*/false); OS.str(); }