[all-commits] [llvm/llvm-project] 04aa5a: [OMPIRBuilder] Don't discard the debug record from...

Abid Qadeer via All-commits all-commits at lists.llvm.org
Wed Apr 30 02:25:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04aa5a88d17f5c1cab7acde2e87de05a405e60f1
      https://github.com/llvm/llvm-project/commit/04aa5a88d17f5c1cab7acde2e87de05a405e60f1
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2025-04-30 (Wed, 30 Apr 2025)

  Changed paths:
    M clang/test/OpenMP/irbuilder_nested_parallel_for.c
    M clang/test/OpenMP/nested_loop_codegen.cpp
    M clang/test/OpenMP/parallel_codegen.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    A mlir/test/Target/LLVMIR/omptarget-parallel-llvm-debug.mlir

  Log Message:
  -----------
  [OMPIRBuilder] Don't discard the debug record from entry block. (#135161)

When we get a function back from `CodeExtractor`, we discard its entry
block after coping its instructions into the entry block we prepared.
While copying the instructions, the terminator is discarded for obvious
reasons. But if there were some debug values attached to the terminator,
those are useful and needs to be copied.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list