diff options
author | Philip Reames <preames@rivosinc.com> | 2024-09-17 08:43:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 08:43:40 -0700 |
commit | 2e7c7d20d55be51f907d87a2298660d73a1cc190 (patch) | |
tree | 98e78f826f92ac8a48b05027f6be24ab55156d05 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0f97b4824a8cf040bd3ce7b644dee9d60065ac61 (diff) | |
download | llvm-2e7c7d20d55be51f907d87a2298660d73a1cc190.zip llvm-2e7c7d20d55be51f907d87a2298660d73a1cc190.tar.gz llvm-2e7c7d20d55be51f907d87a2298660d73a1cc190.tar.bz2 |
[RISCV][TTI] Adjust cost for extract/insert element when VLEN is known (#108595)
If we know an exact VLEN, then the index is effectively modulo the
number of elements in a single vector register. Our lowering performs
this subvector optimization.
A bit of context. This change may look a bit strange on it's own given
we are currently *not* scaling insert/extract cost by LMUL. This costing
decision needs to change, but is very intertwined with SLP
profitability, and is thus a bit hard to adjust. I'm hoping that
https://github.com/llvm/llvm-project/pull/108419 will let me start to
untangle this. This change is basically a case of finding a subset I can
tackle before other dependencies are in place which does no real harm in
the meantime.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions