diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-07-03 21:07:25 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-07-03 21:57:05 -0700 |
commit | d36e09cfe5914b246e4469cd972f67d35d80bf9c (patch) | |
tree | 2b6e0e3c8a39bc6530477d7cb7e37da6a0196399 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 8eb4dcb737479ba105db2ffc83e9f62a7f3f7fb3 (diff) | |
download | llvm-d36e09cfe5914b246e4469cd972f67d35d80bf9c.zip llvm-d36e09cfe5914b246e4469cd972f67d35d80bf9c.tar.gz llvm-d36e09cfe5914b246e4469cd972f67d35d80bf9c.tar.bz2 |
[RISCV] Add more SHXADD patterns.
This handles the code we get for this.
int foo(unsigned x, int *y) {
return y[x >> 3];
}
The srl and shl implied by the array index will be combined to
form (srl (and X, C2), C1). We need to reverse this get to back
the shl to fold into SHXADD.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions