[all-commits] [llvm/llvm-project] 817f45: [RISCV][TTI] Refactor getCastInstrCost to exit ear...
Shih-Po Hung via All-commits
all-commits at lists.llvm.org
Mon Mar 25 23:16:03 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 817f453aa576286aaca0a6b0244e6ab08516b80c
https://github.com/llvm/llvm-project/commit/817f453aa576286aaca0a6b0244e6ab08516b80c
Author: Shih-Po Hung <shihpo.hung at sifive.com>
Date: 2024-03-26 (Tue, 26 Mar 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Log Message:
-----------
[RISCV][TTI] Refactor getCastInstrCost to exit early (#86619)
To reduce the indentation by using early returns, this patch hoist the
return for illegal type and non vector type earlier.
It should mostly be an NFC.
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