This is an archive of the discontinued LLVM Phabricator instance.

[4/15][Clang][RISCV][NFC] Remove unnecessary logic under RVVIntrinsic::computeBuiltinTypes
ClosedPublic

Authored by eopXD on Jan 12 2023, 12:53 AM.

Details

Summary

PolicyAttrs::IsUnspecified is modified in
RVV::Intrinsic::computeBuiltInTypes and used under
RVVIntrinsic::updateNamesAndPolicy. Suprisingly the modification
in RVV::Intrinsic::computeBuiltInTypes is completely unnecessary.
This commit removes the redundant logic.

This is the 4th commit of a patch-set that aims to change the default policy
for RVV intrinsics from TAMU to TAMA.

Please refer to the cover letter in the 1st commit (D141573) for an
overview.

Diff Detail

Event Timeline

eopXD created this revision.Jan 12 2023, 12:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 12:53 AM
eopXD requested review of this revision.Jan 12 2023, 12:53 AM
eopXD updated this revision to Diff 488826.Jan 12 2023, 5:51 PM

Bump CI

eopXD updated this revision to Diff 489288.Jan 14 2023, 10:59 AM

Rebase to latest main.

eopXD retitled this revision from [WIP][4/N][Clang][RISCV][NFC] Remove unnecessary logic under RVVIntrinsic::computeBuiltinTypes to [4/15][Clang][RISCV][NFC] Remove unnecessary logic under RVVIntrinsic::computeBuiltinTypes.Jan 15 2023, 7:27 AM
eopXD edited the summary of this revision. (Show Details)
craig.topper accepted this revision.Jan 17 2023, 4:24 PM

LGTM

clang/lib/Support/RISCVVIntrinsicUtils.cpp
921

I guess removing this negates a comment I left on the rename to Unspecified?

This revision is now accepted and ready to land.Jan 17 2023, 4:24 PM
eopXD added inline comments.Jan 18 2023, 12:40 AM
clang/lib/Support/RISCVVIntrinsicUtils.cpp
921

Yes you are correct.

This revision was landed with ongoing or failed builds.Jan 24 2023, 12:09 AM
This revision was automatically updated to reflect the committed changes.