This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

mohammed-nurulhoque requested review of this revision.Mar 7 2022, 12:57 PM
craig.topper added inline comments.Mar 7 2022, 9:35 PM
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
176

"For these, we"

mohammed-nurulhoque marked an inline comment as done.Mar 8 2022, 1:35 AM
This revision is now accepted and ready to land.Mar 17 2022, 9:27 AM

Thank you for your review. Could you please commit the patch? Here are my details,
Name: Mohammed Nurul Hoque
email: mohammed.nurulhoque@imgtec.com

This revision was landed with ongoing or failed builds.Mar 18 2022, 3:23 AM
This revision was automatically updated to reflect the committed changes.

Tested and committed with testcase update (due to label name change).