This patch adds single-bit and bit-counting ops to list of sign-extending ops.
A single-bit write propagates sign-extendedness if it's not in the sign-bits.
Bit extraction and bit counting always outputs a small number, so sign-extended.
Paths
| Differential D121152
[RISCV] Add more sign-extending ops to MIR sext.w pass. ClosedPublic Authored by mohammed-nurulhoque on Mar 7 2022, 12:57 PM.
Details Summary This patch adds single-bit and bit-counting ops to list of sign-extending ops. A single-bit write propagates sign-extendedness if it's not in the sign-bits. Bit extraction and bit counting always outputs a small number, so sign-extended.
Diff Detail
Event TimelineHerald added subscribers: VincentWu, luke957, achieveartificialintelligence and 26 others. · View Herald Transcript
This revision is now accepted and ready to land.Mar 17 2022, 9:27 AM Comment Actions Thank you for your review. Could you please commit the patch? Here are my details, This revision was landed with ongoing or failed builds.Mar 18 2022, 3:23 AM Closed by commit rG7afa44f5f57e: [RISCV] Add more sign-extending ops to MIR sext.w pass. (authored by mohammed-nurulhoque, committed by kito-cheng). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 416443 llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
llvm/test/CodeGen/RISCV/sextw-removal.ll
|
"For these, we"