[all-commits] [llvm/llvm-project] 7fde4f: [Mips][GISel] Fix a couple issues with passing f64...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Oct 25 11:28:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fde4ffbd311bc0a8ef43c9fb3847985f5ae3bf0
      https://github.com/llvm/llvm-project/commit/7fde4ffbd311bc0a8ef43c9fb3847985f5ae3bf0
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M llvm/lib/Target/Mips/MipsCallLowering.cpp
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    M llvm/test/CodeGen/Mips/GlobalISel/irtranslator/float_args.ll

  Log Message:
  -----------
  [Mips][GISel] Fix a couple issues with passing f64 in 32-bit GPRs. (#69131)

MipsIncomingValueHandler::assignCustomValue should return 1 instead of
2. The return value is the number of additional ArgLocs being consumed.
It's assumed that at least 1 is consumed.

Correct the LocVT used for the spill when there are no registers left.
It should be f64 instead of i32. This allows a workaround to be removed
in the SelectionDAG path.




More information about the All-commits mailing list