This is an archive of the discontinued LLVM Phabricator instance.

[LAA] Use getTypeSizeInBits for stride type size comparison
Needs ReviewPublic

Authored by wwei on Aug 16 2021, 12:00 AM.

Details

Reviewers
dorit
anemet
Ayal
Summary

SCEV type conversion functions, such as getNoopOrSignExtend, will use getTypeSizeInBits to check the conversion type size.
This patch attempts to fix some assertion failures when stride type is undef or the size of alloc type does not match the bits type size.

Diff Detail