diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-09-10 09:03:59 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-09-10 09:04:01 -0700 |
commit | 1b736bda3bb5acd2874e862d9fd0cec335dd899b (patch) | |
tree | ac4ace166521050fdf698af54b24608d853ac484 /llvm/lib/IR/Function.cpp | |
parent | 6c7cadb8c155befbb0fdd058dfb5dbaa0b9aa40a (diff) | |
download | llvm-1b736bda3bb5acd2874e862d9fd0cec335dd899b.zip llvm-1b736bda3bb5acd2874e862d9fd0cec335dd899b.tar.gz llvm-1b736bda3bb5acd2874e862d9fd0cec335dd899b.tar.bz2 |
[RISCV] Enable CGP to sink splat operands of Add/Sub/Mul/Shl/LShr/AShr
LICM may have pulled out a splat, but with .vx instructions we
can fold it into an operation.
This patch enables CGP to reverse the LICM transform and move the
splat back into the loop.
I've started with the commutable integer operations and shifts, but we can
extend this with more operations in future patches.
Reviewed By: frasercrmck
Differential Revision: https://reviews.llvm.org/D109394
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions