This is an archive of the discontinued LLVM Phabricator instance.

[LowerMatrixIntrinsics] Call getRegisterClassForType before getNumberOfRegisters.
ClosedPublic

Authored by craig.topper on Jan 9 2022, 3:23 PM.

Details

Summary

getNumberOfRegisters takes a ClassID as it's argument. It shouldn't be passed a bool. Assuming the bool meant vector or not, we should call getRegisterClassForType first.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 9 2022, 3:23 PM
craig.topper requested review of this revision.Jan 9 2022, 3:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 9 2022, 3:23 PM
fhahn accepted this revision.Jan 10 2022, 11:11 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jan 10 2022, 11:11 AM