This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Replace TypeSize comparison operators in llvm/utils/TableGen
ClosedPublic

Authored by david-arm on Oct 7 2020, 1:16 AM.

Details

Summary

In CodeGenDAGPatterns.cpp we were relying upon TypeSize comparison
operators for ordering types, when we can actually just use the known
minimum size since the scalable property is already being taken into
account. Also, in TypeInfer::EnforceSameSize I fixed some implicit
TypeSize->uint64_t casts by changing the code to test the equality
of TypeSize objects instead.

In other places I have replaced calls to getSizeInBits() with
getFixedSizeInBits() because we are only ever expecting integer values.

Diff Detail

Event Timeline

david-arm created this revision.Oct 7 2020, 1:16 AM
Herald added a project: Restricted Project. · View Herald Transcript
david-arm requested review of this revision.Oct 7 2020, 1:16 AM
This revision is now accepted and ready to land.Oct 16 2020, 1:32 AM
This revision was landed with ongoing or failed builds.Oct 19 2020, 12:22 AM
This revision was automatically updated to reflect the committed changes.