[llvm] [RemoveDIs] Make verify-uselistorder preserve the input debug info format (PR #87789)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 09:21:55 PDT 2024
================
@@ -259,6 +259,8 @@ int main(int argc, char **argv) {
if (!DontPrint) {
if (M) {
ScopedDbgInfoFormatSetter FormatSetter(*M, WriteNewDbgInfoFormat);
+ if (WriteNewDbgInfoFormat)
+ M->removeDebugIntrinsicDeclarations();
----------------
SLTozer wrote:
It causes problems with existing tests, yes - when all the test IR gets updated (as we move to writing new-format by default) it'll be moved into the conversion function, but otherwise it causes intrinsic declarations to be reordered, which is awkward for tests and feels like a wrong behaviour.
https://github.com/llvm/llvm-project/pull/87789
More information about the llvm-commits
mailing list