Skip to content

Conversation

@vvereschaka
Copy link
Contributor

These changes break the LLVM::fixed-point.ll test some targets what fails the builds for those targets
(more details #80757 (comment))

The problem wasn't fixed for few days,

Reverts #80757

@llvmbot
Copy link
Member

llvmbot commented Feb 19, 2024

@llvm/pr-subscribers-debuginfo

Author: Vladimir Vereschaka (vvereschaka)

Changes

These changes break the LLVM::fixed-point.ll test some targets what fails the builds for those targets
(more details #80757 (comment))

The problem wasn't fixed for few days,

Reverts llvm/llvm-project#80757


Full diff: https://github.com/llvm/llvm-project/pull/82285.diff

2 Files Affected:

  • (modified) llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp (-3)
  • (removed) llvm/test/DebugInfo/fixed-point.ll (-31)
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
index f00ff1565c665f..eb2d992c7e75e7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
@@ -224,15 +224,12 @@ bool DebugHandlerBase::isUnsignedDIType(const DIType *Ty) {
           Encoding == dwarf::DW_ATE_float || Encoding == dwarf::DW_ATE_UTF ||
           Encoding == dwarf::DW_ATE_boolean ||
           Encoding == dwarf::DW_ATE_complex_float ||
-          Encoding == dwarf::DW_ATE_signed_fixed ||
-          Encoding == dwarf::DW_ATE_unsigned_fixed ||
           (Ty->getTag() == dwarf::DW_TAG_unspecified_type &&
            Ty->getName() == "decltype(nullptr)")) &&
          "Unsupported encoding");
   return Encoding == dwarf::DW_ATE_unsigned ||
          Encoding == dwarf::DW_ATE_unsigned_char ||
          Encoding == dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean ||
-         Encoding == llvm::dwarf::DW_ATE_unsigned_fixed ||
          Ty->getTag() == dwarf::DW_TAG_unspecified_type;
 }
 
diff --git a/llvm/test/DebugInfo/fixed-point.ll b/llvm/test/DebugInfo/fixed-point.ll
deleted file mode 100644
index 0de984484c0e60..00000000000000
--- a/llvm/test/DebugInfo/fixed-point.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-;; This fixes https://github.com/llvm/llvm-project/issues/81555
-; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
-; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - -verify | FileCheck %s --check-prefix=VERIFY
-
-; VERIFY-NOT: error:
-
-; CHECK: {{.*}}:   DW_TAG_base_type
-; CHECK-NEXT:          DW_AT_name  ("var")
-; CHECK-NEXT:          DW_AT_encoding  (DW_ATE_signed_fixed)
-define void @func() !dbg !26 {
-entry:
-  %classifier = alloca i32, align 4
-  tail call void @llvm.dbg.value(metadata i32 32768, metadata !37, metadata !DIExpression()), !dbg !39
-  store i32 32768, ptr %classifier, align 4, !dbg !39
-  ret void
-}
-
-declare void @llvm.dbg.value(metadata, metadata, metadata)
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!19}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, emissionKind: FullDebug)
-!1 = !DIFile(filename: "a", directory: "")
-!6 = !DIBasicType(name: "var", size: 32, encoding: DW_ATE_signed_fixed)
-!19 = !{i32 2, !"Debug Info Version", i32 3}
-!3 = !DISubroutineType(types: null)
-!26 = distinct !DISubprogram(unit: !0, type: !3)
-!37 = !DILocalVariable(name: "intercept", arg: 2, scope: !26, file: !1, line: 7, type: !6)
-!39 = !DILocation(line: 0, scope: !26)
-

@vvereschaka
Copy link
Contributor Author

@PiJoules FYI

@github-actions
Copy link

⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
Please turn off Keep my email addresses private setting in your account.
See LLVM Discourse for more information.

@vvereschaka
Copy link
Contributor Author

the fixed-point.ll test crash details

Program aborted due to an unhandled Error:
createMCCodeEmitter failed
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/DebugInfo/fixed-point.ll -filetype=obj -o -
 #0 0x00007ff0f75fefb0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0x1dafb0)
 #1 0x00007ff0f75fc3bf llvm::sys::RunSignalHandlers() (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0x1d83bf)
 #2 0x00007ff0f75fc515 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007ff0f6c42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007ff0f6c969fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x00007ff0f6c969fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x00007ff0f6c969fc pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x00007ff0f6c42476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x00007ff0f6c287f3 abort ./stdlib/abort.c:81:7
 #9 0x00007ff0f751727b llvm::Error::fatalUncheckedError() const (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMSupport.so.19git+0xf327b)
#10 0x00007ff0f93866d8 llvm::LLVMTargetMachine::addAsmPrinter(llvm::legacy::PassManagerBase&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::CodeGenFileType, llvm::MCContext&) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMCodeGen.so.19git+0x30d6d8)
#11 0x00007ff0f9386825 llvm::LLVMTargetMachine::addPassesToEmitFile(llvm::legacy::PassManagerBase&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::CodeGenFileType, bool, llvm::MachineModuleInfoWrapperPass*) (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/libLLVMCodeGen.so.19git+0x30d825)
#12 0x00005654e6bd07a0 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#13 0x00005654e6bc6336 main (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc+0xf336)
#14 0x00007ff0f6c29d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x00007ff0f6c29e40 call_init ./csu/../csu/libc-start.c:128:20
#16 0x00007ff0f6c29e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#17 0x00005654e6bc6e95 _start (/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/llc+0xfe95)
error: -: The file was not recognized as a valid object file
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/DebugInfo/fixed-point.ll

@vvereschaka vvereschaka merged commit d9f9775 into main Feb 20, 2024
@vvereschaka vvereschaka deleted the revert-80757-handle-fixed-point-debuginfo branch February 20, 2024 04:03
PiJoules added a commit to PiJoules/llvm-project that referenced this pull request Feb 20, 2024
… types." (llvm#82285)

This reverts commit d9f9775.

The test was missing a `REQUIRES: object-emission`.
PiJoules added a commit that referenced this pull request Feb 20, 2024
#82412)

… types." (#82285)

This reverts commit d9f9775.

The test was missing a `REQUIRES: object-emission`.
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this pull request Apr 24, 2024
llvm#82412)

… types." (llvm#82285)

This reverts commit d9f9775.

The test was missing a `REQUIRES: object-emission`.

(cherry picked from commit 0b2b91e)
augusto2112 pushed a commit to augusto2112/llvm-project that referenced this pull request Apr 24, 2024
llvm#82412)

… types." (llvm#82285)

This reverts commit d9f9775.

The test was missing a `REQUIRES: object-emission`.

(cherry picked from commit 0b2b91e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants