This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use MCSubtargetInfo::hasFeature where possible. NFC
ClosedPublic

Authored by craig.topper on Feb 17 2023, 2:01 PM.

Details

Summary

Rather than using operator[] on getFeatureBits we can use
hasFeature to shorten the code.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 17 2023, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 2:01 PM
craig.topper requested review of this revision.Feb 17 2023, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 2:01 PM
MaskRay accepted this revision.Feb 17 2023, 2:18 PM
This revision is now accepted and ready to land.Feb 17 2023, 2:18 PM
This revision was landed with ongoing or failed builds.Feb 17 2023, 2:38 PM
This revision was automatically updated to reflect the committed changes.