This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Fix unused variable warning.
ClosedPublic

Authored by fakepaper56 on Oct 6 2022, 7:58 AM.

Diff Detail

Event Timeline

fakepaper56 created this revision.Oct 6 2022, 7:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 7:58 AM
fakepaper56 requested review of this revision.Oct 6 2022, 7:58 AM
frasercrmck added inline comments.Oct 7 2022, 3:43 AM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
4503

I notice in at least one other place we do:

auto VL = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget).second;

would that make sense here?

fakepaper56 added inline comments.Oct 7 2022, 2:47 PM
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
4503

Good idea. I think it is better than my method.

Adopt Fraser's proposal.

reames accepted this revision.Oct 7 2022, 3:42 PM
reames added a subscriber: reames.

LGTM

This revision is now accepted and ready to land.Oct 7 2022, 3:42 PM
This revision was automatically updated to reflect the committed changes.