This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeTypes][TargetLowering][RISCV] Fix regressions from D146786.
ClosedPublic

Authored by craig.topper on Mar 24 2023, 12:44 AM.

Details

Summary

Add some special cases for UADDO to recover codegen after D146786.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 24 2023, 12:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 12:44 AM
craig.topper requested review of this revision.Mar 24 2023, 12:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 12:44 AM
reames accepted this revision.Mar 24 2023, 11:44 AM

LGTM

This revision is now accepted and ready to land.Mar 24 2023, 11:44 AM
liaolucy added inline comments.Mar 25 2023, 5:49 AM
llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
663

RV32 and RV64 each add an mv(COPY) instruction, the instruction is added by virtregrewriter.

But the whole is good, maybe we can add a todo, lest we forget.

craig.topper added inline comments.Mar 25 2023, 10:57 AM
llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
663

Functions this small aren’t representative of register allocation on longer functions. I would hope this function would be inlined.

liaolucy accepted this revision.Mar 26 2023, 6:05 PM
liaolucy added inline comments.
llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
663

thanks, LGTM