[all-commits] [llvm/llvm-project] 064490: [RISCV] Avoid using x7/t2 for indirect branches wh...
Yeting Kuo via All-commits
all-commits at lists.llvm.org
Wed May 1 19:33:01 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06449095c22097508854c00f06d27bdccf1ed667
https://github.com/llvm/llvm-project/commit/06449095c22097508854c00f06d27bdccf1ed667
Author: Yeting Kuo <46629943+yetingk at users.noreply.github.com>
Date: 2024-05-02 (Thu, 02 May 2024)
Changed paths:
M llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
M llvm/lib/Target/RISCV/RISCVFeatures.td
M llvm/lib/Target/RISCV/RISCVInstrInfo.td
M llvm/lib/Target/RISCV/RISCVRegisterInfo.td
A llvm/test/CodeGen/RISCV/zicfilp-indirect-branch.ll
Log Message:
-----------
[RISCV] Avoid using x7/t2 for indirect branches which need landing pad. (#68292)
When Zicfilp enabled, this avoids selecting indirect jumps to PseudoBRIND/PseudoCALLIndirect/PseudoTAILIndirect, since they may uses X7 as rs1 and be identified as a software guarded jump. There is an another PR #66762 to use software guarded jump for jumptable branch.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list