[all-commits] [llvm/llvm-project] 700042: [RISCV] Remove debug location to spill/reload inst...

LiqinWeng via All-commits all-commits at lists.llvm.org
Sat Sep 9 01:58:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 700042cd88903d984612c0ecd3324b0fda651bda
      https://github.com/llvm/llvm-project/commit/700042cd88903d984612c0ecd3324b0fda651bda
  Author: liqin.weng <liqin.weng at spacemit.com>
  Date:   2023-09-09 (Sat, 09 Sep 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

  Log Message:
  -----------
  [RISCV] Remove debug location to spill/reload instructions

Spill/reload instructions are artificially generated by the compiler and
have no relation to the original source code. So the best thing to do is
not attach any debug location to them (instead of just taking the next
debug location we find on following instructions).

Refered to https://reviews.llvm.org/rG3e081703c349dd00b8ef6991c2d15964915dd8f4

Reviewed By: asb, kito-cheng, benshi001

Differential Revision: https://reviews.llvm.org/D129173




More information about the All-commits mailing list