This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Correct RISCVTTIImpl::getRegUsageForType for vectors of pointers.
ClosedPublic

Authored by craig.topper on Oct 14 2022, 11:04 AM.

Details

Summary

getPrimitiveSizeInBits returns 0 for pointers, we need to query
the size via DataLayout instead.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 14 2022, 11:04 AM
craig.topper requested review of this revision.Oct 14 2022, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 11:04 AM

Add test case

reames accepted this revision.Oct 14 2022, 11:25 AM

LGTM

This revision is now accepted and ready to land.Oct 14 2022, 11:25 AM
This revision was landed with ongoing or failed builds.Oct 14 2022, 11:34 AM
This revision was automatically updated to reflect the committed changes.