Opitimize immediate materialisation in the following way if profitable:
- Use BCLRI for upper 32 bits if the lower 32 bits are negative int32.
- Use BSETI for upper 32 bits if the lower 32 bits are positive int32.
Paths
| Differential D111508
[RISCV] Optimize immediate materialisation with BSETI/BCLRI ClosedPublic Authored by benshi001 on Oct 10 2021, 6:04 AM.
Details Summary Opitimize immediate materialisation in the following way if profitable:
Diff Detail
Event TimelineHerald added subscribers: achieveartificialintelligence, vkmr, frasercrmck and 23 others. · View Herald TranscriptOct 10 2021, 6:04 AM benshi001 added a parent revision: D111483: [RISCV][test] Add more tests of immediate materialisation. benshi001 marked 2 inline comments as done.
This comment was removed by benshi001. benshi001 marked an inline comment as done. benshi001 marked 3 inline comments as done. This revision is now accepted and ready to land.Oct 13 2021, 9:47 PM Closed by commit rG7e8152612677: [RISCV] Optimize immediate materialisation with BSETI/BCLRI (authored by benshi001). · Explain WhyOct 13 2021, 9:57 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 379573 llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
llvm/test/CodeGen/RISCV/imm.ll
llvm/test/MC/RISCV/rv64zbs-aliases-valid.s
|
BCLI -> BCLRI