[all-commits] [llvm/llvm-project] 394bba: [CodeGen][DebugInfo] Add missing debug info for ju...

HaohaiWen via All-commits all-commits at lists.llvm.org
Sat Nov 18 03:18:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 394bba766ddd2f5ea8ac8007dcadb724f79bafc4
      https://github.com/llvm/llvm-project/commit/394bba766ddd2f5ea8ac8007dcadb724f79bafc4
  Author: HaohaiWen <haohai.wen at intel.com>
  Date:   2023-11-18 (Sat, 18 Nov 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/SwitchLoweringUtils.h
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SwitchLoweringUtils.cpp
    M llvm/test/DebugInfo/X86/debug-info-jump-table.ll

  Log Message:
  -----------
  [CodeGen][DebugInfo] Add missing debug info for jump table BB (#71021)

visitJumpTable is called on FinishBasicBlock. At that time, getCurSDLoc
will always return SDLoc without DebugLoc since CurInst was set to
nullptr after visiting each instruction.
This patch passes SDLoc to buildJumpTable when visiting SwitchInst so
that visitJumpTable can use it later.




More information about the All-commits mailing list