[all-commits] [llvm/llvm-project] 6590a3: [SPARC] Lower BR_CC to BPr on 64-bit target whenev...
Koakuma via All-commits
all-commits at lists.llvm.org
Sat Mar 11 15:53:45 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6590a372fa3f4582c04b4b179f90a3c728e75025
https://github.com/llvm/llvm-project/commit/6590a372fa3f4582c04b4b179f90a3c728e75025
Author: Koakuma <koachan at protonmail.com>
Date: 2023-03-11 (Sat, 11 Mar 2023)
Changed paths:
M llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
M llvm/lib/Target/Sparc/SparcISelLowering.cpp
M llvm/lib/Target/Sparc/SparcISelLowering.h
M llvm/lib/Target/Sparc/SparcInstr64Bit.td
M llvm/lib/Target/Sparc/SparcInstrAliases.td
M llvm/lib/Target/Sparc/SparcInstrFormats.td
M llvm/lib/Target/Sparc/SparcInstrInfo.cpp
M llvm/lib/Target/Sparc/SparcInstrInfo.td
M llvm/test/CodeGen/SPARC/branches-relax.ll
M llvm/test/CodeGen/SPARC/branches-v9.ll
M llvm/test/CodeGen/SPARC/missinglabel.ll
Log Message:
-----------
[SPARC] Lower BR_CC to BPr on 64-bit target whenever possible
On 64-bit target, when doing i64 BR_CC where one of the comparison operands is a
constant zero, try to fold the compare and BPcc into a BPr instruction.
For all integers, EQ and NE comparison are available, additionally for signed
integers, GT, GE, LT, and LE is also available.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D142461
More information about the All-commits
mailing list