[PATCH] D138941: [RISCV][TTI] Account for constant materialization cost when costing airthmetic operations
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 07:20:29 PST 2022
reames added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:1028
+ // Two sub-cases:
+ // * Has a 12 bit immediate operand which can be splatted.
+ // * Has a larger immediate which must be materialized in scalar register
----------------
craig.topper wrote:
> Why 12 bit? If we're referring to vector instructions its 5 bits isn't it?
This was a typo on my part. Was thinking about memory addressing for scalars at the same time, and the 12 bit got copied over. Fixed in the version I'll land.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138941/new/
https://reviews.llvm.org/D138941
More information about the llvm-commits
mailing list