diff options
author | Hsiangkai Wang <hsiangkai@google.com> | 2022-04-22 01:41:09 +0000 |
---|---|---|
committer | Hsiangkai Wang <hsiangkai@google.com> | 2022-04-29 04:33:05 +0000 |
commit | c62b014db97953bee25d17b46730f05eea6a3430 (patch) | |
tree | c84f29f544bd4aafab96c9dc37d36a76ccc7651e /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 9fc58f1820e3b0883c9759945bca1aa1f1df8e8d (diff) | |
download | llvm-c62b014db97953bee25d17b46730f05eea6a3430.zip llvm-c62b014db97953bee25d17b46730f05eea6a3430.tar.gz llvm-c62b014db97953bee25d17b46730f05eea6a3430.tar.bz2 |
[RISCV] Merge addi into load/store as there is a ADD between them
This patch adds peephole optimizations for the following patterns:
(load (add base, (addi src, off1)), off2)
-> (load (add base, src), off1+off2)
(store val, (add base, (addi src, off1)), off2)
-> (store val, (add base, src), off1+off2)
Differential Revision: https://reviews.llvm.org/D124231
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions