aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-07-09 09:48:23 +0800
committerBen Shi <powerman1st@163.com>2021-07-09 09:48:23 +0800
commited102ce20a5f5ddf388bc71217228b756e2f5fe3 (patch)
treea8137563663c468cf7b3b4b97593ef49c40a35d2 /llvm/lib/Support/Threading.cpp
parent38451fa1789cd42fe4c1ed8ac519620892e4634d (diff)
downloadllvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.zip
llvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.tar.gz
llvm-ed102ce20a5f5ddf388bc71217228b756e2f5fe3.tar.bz2
[RISCV][test] Add new tests for mul optimization in the zba extension with SH*ADD
This patch will show the following optimization by future patches. (mul x imm) -> (SH1ADD x, (SLLI x, bits)) when imm = 2^n + 2. (mul x imm) -> (SH2ADD x, (SLLI x, bits)) when imm = 2^n + 4. (mul x imm) -> (SH3ADD x, (SLLI x, bits)) when imm = 2^n + 8. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D105614
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions