[PATCH] D137532: [LoongArch] Implement the TargetLowering::getRegisterByName hook

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 23:30:38 PST 2022


gonglingqin added inline comments.


================
Comment at: llvm/test/CodeGen/LoongArch/get-noreg.ll:2
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: not --crash llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s
+
----------------
SixWeining wrote:
> `crash` may slow down the test. Could we not add such tests?
Thanks, I will remove this test.


================
Comment at: llvm/test/CodeGen/LoongArch/get-reg-error.ll:2
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: not --crash llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s
+
----------------
SixWeining wrote:
> Ditto.
Thanks, I will remove this test.


================
Comment at: llvm/test/CodeGen/LoongArch/get-reg-reserve.ll:1
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s --mtriple=loongarch64 | FileCheck %s
----------------
SixWeining wrote:
> I suggest to rename `get-reg-reserve.ll` to `get-reg.ll` since `get-reg-reserve.ll` may imply we support getting non-reserved registers.
Thanks, I will rename this file.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137532



More information about the llvm-commits mailing list