[all-commits] [llvm/llvm-project] e0adc3: [Mips] support "sp" named register

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Thu Mar 3 13:53:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0adc3be132922776a867a623959e176f29f9965
      https://github.com/llvm/llvm-project/commit/e0adc3be132922776a867a623959e176f29f9965
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    M llvm/test/CodeGen/Mips/named-register-n32.ll
    M llvm/test/CodeGen/Mips/named-register-n64.ll
    M llvm/test/CodeGen/Mips/named-register-o32.ll

  Log Message:
  -----------
  [Mips] support "sp" named register

After Linux kernel commit
commit 200ed341b864 ("mips: Implement "current_stack_pointer"")
We observe the following build error when compiling the Linux kernel
targeting Mips:
fatal error: error in backend: Invalid register name global variable

Fixes: https://github.com/llvm/llvm-project/issues/54174
Link: https://github.com/ClangBuiltLinux/linux/issues/1608

Reviewed By: atanasyan

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




More information about the All-commits mailing list