diff options
author | Philip Reames <preames@rivosinc.com> | 2024-09-25 07:25:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 07:25:57 -0700 |
commit | d2885743630fcb35fdf64d21bd4bec62a5cb4d37 (patch) | |
tree | 0f52e7df5e31e28b71c7e66fc49faf0de84959cf /clang/unittests/Frontend/CompilerInstanceTest.cpp | |
parent | 3469db82b5c821c94b58c0b81f03bbef51efa30b (diff) | |
download | llvm-d2885743630fcb35fdf64d21bd4bec62a5cb4d37.zip llvm-d2885743630fcb35fdf64d21bd4bec62a5cb4d37.tar.gz llvm-d2885743630fcb35fdf64d21bd4bec62a5cb4d37.tar.bz2 |
[TTI][RISCV] Model cost of loading constants arms of selects and compares (#109824)
This follows in the spirit of 7d82c99403f615f6236334e698720bf979959704,
and extends the costing API for compares and selects to provide
information about the operands passed in an analogous manner. This
allows us to model the cost of materializing the vector constant, as
some select-of-constants are significantly more expensive than others
when you account for the cost of materializing the constants involved.
This is a stepping stone towards fixing
https://github.com/llvm/llvm-project/issues/109466. A separate SLP patch
will be required to utilize the new API.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInstanceTest.cpp')
0 files changed, 0 insertions, 0 deletions