[PATCH] D138941: [RISCV][TTI] Account for constant materialization cost when costing airthmetic operations
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 16:00:17 PST 2022
craig.topper 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
----------------
Why 12 bit? If we're referring to vector instructions its 5 bits isn't it?
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