This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix implicit TypeSize->uint64_t conversion in getCastInstrCost
ClosedPublic

Authored by david-arm on Jul 9 2020, 1:00 AM.

Details

Summary

In getCastInstrCost() when comparing different sizes for src and
dst types we should be using the TypeSize comparison operators
instead of relying upon TypeSize being converted a uin64_t.
Previously this meant we were dropping the scalable property and
treating fixed and scalable vector types the same.

Diff Detail

Event Timeline

david-arm created this revision.Jul 9 2020, 1:00 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jul 13 2020, 6:46 AM
This revision was automatically updated to reflect the committed changes.