diff options
author | Sergey Kachkov <109674256+skachkov-sc@users.noreply.github.com> | 2023-09-25 12:26:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 12:26:01 +0300 |
commit | 0a5d52a757f389b4f7ee3ee1ad6840ff7ce33e51 (patch) | |
tree | 0b8e8a4eca2e0809d14e2acdcae516cdcea77133 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | b4858c634e35e70627d59f5070d4ddcd8604e4f3 (diff) | |
download | llvm-0a5d52a757f389b4f7ee3ee1ad6840ff7ce33e51.zip llvm-0a5d52a757f389b4f7ee3ee1ad6840ff7ce33e51.tar.gz llvm-0a5d52a757f389b4f7ee3ee1ad6840ff7ce33e51.tar.bz2 |
[RISCV][CostModel] Add getCFInstrCost RISC-V implementation (#65599)
This patch implements getCFInstrCost TTI hook that mostly affects
LoopVectorizer decisions. It sets zero cost for PHI nodes and zero
throughput cost for branches (assuming that branches are likely to
be predicted). The implementation is similar to X86/AArch64/PowerPC
targets and reduces loop cost by excluding induction PHIs/loop latch
branches, which in turn leads to selecting smaller vectorization
factor.
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions