diff options
| author | Craig Topper <craig.topper@sifive.com> | 2022-12-15 11:01:20 -0800 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2022-12-15 11:01:20 -0800 |
| commit | 992bee045b7586774ffd539bb46d9a1e22896f60 (patch) | |
| tree | 1d714316528a0ba86e3250942926292d4d1df284 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | a3b4feff2503f805aed898defbdb0ea30d7ed44a (diff) | |
[RISCV] Teach RISCVSExtWRemoval to remove sext.w whose upper bits aren't demanded.
SelectionDAG aggressively creates sext_inreg operations after
promoting an i32 add. If the add is later matched to a sh1add,
sh2add or sh3add, a sext.w from the sext_inreg will get left behind.
In many cases we can prove this sext.w is unnecessary by checking
if its upper bits are ever used.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
