This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] Avoid type legalization on structs
ClosedPublic

Authored by cuviper on Jul 26 2023, 3:08 PM.

Details

Summary

In SystemZTTIImpl::getMemoryOpCost, the call to getNumberOfParts will
run type legalization, which can't handle structs. So before that, we
check for an unknown value type and forward to BaseT, just like many
other targets do in this situation.

https://bugzilla.redhat.com/show_bug.cgi?id=2224885

Diff Detail

Event Timeline

cuviper created this revision.Jul 26 2023, 3:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 3:08 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
cuviper requested review of this revision.Jul 26 2023, 3:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 3:08 PM
tuliom added a subscriber: tuliom.Jul 27 2023, 5:19 AM
uweigand accepted this revision.Aug 1 2023, 4:40 AM

LGTM, thanks!

This revision is now accepted and ready to land.Aug 1 2023, 4:40 AM
This revision was landed with ongoing or failed builds.Aug 7 2023, 6:03 PM
This revision was automatically updated to reflect the committed changes.