This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add zext.h/zext.w to RISCVTTIImpl::getIntImmCostInst.
ClosedPublic

Authored by craig.topper on Aug 9 2021, 2:10 PM.

Details

Summary

If we have these instructions, we don't need to hoist the immediate
for an AND that would match them.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 9 2021, 2:10 PM
craig.topper requested review of this revision.Aug 9 2021, 2:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 2:10 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
This revision is now accepted and ready to land.Aug 18 2021, 5:42 AM