[all-commits] [llvm/llvm-project] b73efb: [Hexagon] Avoid Handling Debug Instructions (#212918)

Brian Cain via All-commits all-commits at lists.llvm.org
Thu Aug 6 06:05:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b73efb77b873a536814b4aec98a41f4d099bd58d
      https://github.com/llvm/llvm-project/commit/b73efb77b873a536814b4aec98a41f4d099bd58d
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2026-08-06 (Thu, 06 Aug 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
    A llvm/test/CodeGen/Hexagon/avoid-debug-instructions.mir

  Log Message:
  -----------
  [Hexagon] Avoid Handling Debug Instructions (#212918)

The change is made in HexagonFrameLowering::(optimizeSpillSlots)
function. This Pass is responsible for managing function's stack frame
and ensuring proper stack space allocation. Spill slots means temporary
memory locations used for storing register values that need to be
spilled from registers to memory during code execution. While Optimizing
these spill slots we should not handle debug instructions. Optimized the
pass by skipping debug instructions in optimizeSpillSlots function.

A DBG_VALUE describing a variable that lives in a spill slot has a frame
index operand, but it is neither a load from nor a store to that slot,
so the slot was marked as one that cannot be optimized and the
store/load pair using it was no longer replaced with register copies.
The code generated for a function therefore differed depending on
whether debug info was enabled.

Co-authored-by: Chandana Sinderikeri <csinderi at qti.qualcomm.com>



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