This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Insert sext_inreg when type legalizing add/sub/mul with constant LHS.
ClosedPublic

Authored by craig.topper on Aug 7 2021, 10:37 AM.

Details

Summary

We already do this for non-constants RHS. This just removes the
special case. I believe the special case may have been needed
because the ANY_EXTEND of a constant used to create zero extended
constants, but we recently changed that to produce sign extended
constants.

D107658 is needed to prevent some regressions.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 7 2021, 10:37 AM
craig.topper requested review of this revision.Aug 7 2021, 10:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2021, 10:37 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
craig.topper retitled this revision from [RISCV] Inserting sext_inreg when type legalizing add/sub/mul with constant LHS. to [RISCV] Insert sext_inreg when type legalizing add/sub/mul with constant LHS..
This revision is now accepted and ready to land.Aug 18 2021, 6:01 AM