diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-07-15 19:36:43 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2025-07-15 22:43:56 -0700 |
commit | dbb6ed76317a52ada7045611649e50c2afe51496 (patch) | |
tree | e254b69cca865057c060632bf38db7dc4e968e99 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 6d0f573535e27171e4ef927baeab3edc928beebb (diff) | |
download | llvm-dbb6ed76317a52ada7045611649e50c2afe51496.zip llvm-dbb6ed76317a52ada7045611649e50c2afe51496.tar.gz llvm-dbb6ed76317a52ada7045611649e50c2afe51496.tar.bz2 |
[RISCV] Refactor SelectAddrRegRegScale. NFC
Rename UnwrapShl->SelectShl. Make it only responsible for matching
a SHL by constant.
Handle the fallback case of reg+reg with no scale outside of SelectShl.
Reorder the check so RHS is checked for shift first. The base pointer
is most likely on the LHS. It's very unlikely both operands are shifts.
This is preparation for adding better costing decisions to this code.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions