This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] [NFC] Refactor the type promotion of fsl/fsr/becompress/bdecompress/bfp
ClosedPublic

Authored by Miss_Grape on Apr 5 2022, 9:33 PM.

Diff Detail

Event Timeline

Miss_Grape created this revision.Apr 5 2022, 9:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 9:33 PM
Miss_Grape requested review of this revision.Apr 5 2022, 9:33 PM
asb added inline comments.Apr 11 2022, 8:22 AM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
6641

Nit: you could replace this with for (SDValue Op : N->ops())

asb added inline comments.Apr 11 2022, 8:27 AM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
6641

Sorry, you'd actually need for (SDValue Op : drop_begin(N->ops())). Not quite as compelling a replacement, but might be worth considering.

craig.topper added inline comments.Apr 11 2022, 9:46 AM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
6639

8 seems high. Are we ever using more than 3?

jrtc27 added inline comments.Apr 11 2022, 1:27 PM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
6639

Name should be plural

fix the comment

Miss_Grape marked 4 inline comments as done.Apr 12 2022, 2:45 AM

LGTM, but please update the commit title since you also changed becompress, bdecompress and bfp.

Miss_Grape retitled this revision from [RISCV] Refactoring the type promotion process of instructions fsl/fsr to [RISCV] [NFC] Refactor the type promotion of fsl/fsr/becompress/bdecompress/bfp.Apr 12 2022, 7:47 PM

LGTM, but please update the commit title since you also changed becompress, bdecompress and bfp.

Done

This revision is now accepted and ready to land.Apr 13 2022, 12:06 AM
This revision was landed with ongoing or failed builds.Apr 13 2022, 1:52 AM
This revision was automatically updated to reflect the committed changes.