diff options
| author | Craig Topper <craig.topper@sifive.com> | 2021-03-24 23:23:16 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2021-03-25 09:03:25 -0700 |
| commit | c40cea6f083a8a67ea950e058e16d37bb04e8c4b (patch) | |
| tree | 4783797402320e59db2eb51aa99bb27384b3dd68 /llvm/lib/CodeGen/MachineLoopUtils.cpp | |
| parent | f5349922c06fec0feec53f9eab90aaaa5fe6ed17 (diff) | |
| download | llvm-c40cea6f083a8a67ea950e058e16d37bb04e8c4b.zip llvm-c40cea6f083a8a67ea950e058e16d37bb04e8c4b.tar.gz llvm-c40cea6f083a8a67ea950e058e16d37bb04e8c4b.tar.bz2 | |
[RISCV] Teach targetShrinkDemandedConstant to preserve (and X, 0xffffffff).
We look for this pattern frequently in isel patterns so its a
good idea to try to preserve it.
This also let's us remove our special isel handling for srliw
and use a direct pattern match of (srl (and X, 0xffffffff), C)
since no bits will be removed from the and mask.
Differential Revision: https://reviews.llvm.org/D99042
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions
