[PATCH] D148304: [LoongArch] Use empty debug location for register spill/reload

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 21:35:42 PDT 2023


benshi001 added a comment.

In D148304#4267356 <https://reviews.llvm.org/D148304#4267356>, @xen0n wrote:

> Looks good at first glance but would it be better to have some test coverage (if feasible)?

It is not easy to compose a proper test case for that, for example,

  int foo;
  int as(int a) {
          foo += a;
          return foo;
  }

Build it with `clang a.c -O0 -g --target=loongarch32`, the difference is as following

F27150739: image.png <https://reviews.llvm.org/F27150739>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148304/new/

https://reviews.llvm.org/D148304



More information about the llvm-commits mailing list