[all-commits] [llvm/llvm-project] fd0aea: [SPARC] Don't emit deprecated FP branches when tar...

Koakuma via All-commits all-commits at lists.llvm.org
Wed Nov 16 18:03:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd0aeaa83a141624a7fe65386f94c085368d138f
      https://github.com/llvm/llvm-project/commit/fd0aeaa83a141624a7fe65386f94c085368d138f
  Author: Koakuma <koachan at protonmail.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M llvm/lib/Target/Sparc/SparcISelLowering.cpp
    M llvm/lib/Target/Sparc/SparcISelLowering.h
    M llvm/lib/Target/Sparc/SparcInstrInfo.td
    M llvm/test/CodeGen/SPARC/2011-01-11-CC.ll
    M llvm/test/CodeGen/SPARC/64cond.ll

  Log Message:
  -----------
  [SPARC] Don't emit deprecated FP branches when targeting v9

Don't emit deprecated v8-style FP compares & branches when targeting v9
processors.

For now, always use %fcc0, because currently the allocator requires allocatable
registers to also be spillable, which isn't the case with v9 FCC registers.

The work to enable allocation over the entire FCC register file will be done in
a future patch.

Fixes bug #17834

Reviewed By: arsenm

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




More information about the All-commits mailing list