aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-04-07 16:10:30 -0700
committerCraig Topper <craig.topper@sifive.com>2022-04-08 09:04:04 -0700
commit1903b9915456e06c46e3014f8cc41f4471de28a0 (patch)
tree331880cb360a5708315d931dde155655343eb3e1 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent57f4dcfe154fb55eebab3039ab9e4b62ab959a31 (diff)
downloadllvm-1903b9915456e06c46e3014f8cc41f4471de28a0.zip
llvm-1903b9915456e06c46e3014f8cc41f4471de28a0.tar.gz
llvm-1903b9915456e06c46e3014f8cc41f4471de28a0.tar.bz2
[RISCV] Always select (and (srl X, C), Mask) as (srli (slli X, C2), C3).
SLLI is always compressible to C.SLLI as long as the source and dest register is the same. ANDI and SRLI are only compressible if the register is x8-x15. By using SLLI we have a better chance of generating shorter code. I had to exclude one exclusion for the BEXTI case so that it's pattern match could still fire. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D123336
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions