[all-commits] [llvm/llvm-project] fc8974: [RISCV][NFC] Clarify getRISCVInstructionCost usage...
Shih-Po Hung via All-commits
all-commits at lists.llvm.org
Sun Feb 2 23:49:30 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc897450019bc0585f3592ee3a3d68bad2fdcbbc
https://github.com/llvm/llvm-project/commit/fc897450019bc0585f3592ee3a3d68bad2fdcbbc
Author: Shih-Po Hung <shihpo.hung at sifive.com>
Date: 2025-02-03 (Mon, 03 Feb 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
Log Message:
-----------
[RISCV][NFC] Clarify getRISCVInstructionCost usage (#121556)
This patch adds a comment to explicitly state that
getRISCVInstructionCost uses vtype associated with widening and
narrowing instructions.
For example, vtype = (SEW):
For vfwcvt.f.f.v, the source is (SEW), the destination is (2 * SEW)
For vfncvt.f.f.w, the source is (2 * SEW), the destination is (SEW).
In these cases, the type passed to `getRISCVInstructionCost` differs
- The source type is used for `vfwcvt.f.f.v`.
- The destination type is used for `vfncvt.f.f.w`.
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