This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking][SVE] Fix isGEPKnownNonNull for scalable vector.
ClosedPublic

Authored by huihuiz on Mar 16 2020, 4:42 PM.

Details

Summary

DataLayout::getTypeAllocSize() return TypeSize. For cases where the
scalable property doesn't matter, we should explicitly call getKnownMinSize()
to avoid implicit type conversion to uint64_t, which is not valid for scalable
vector type.

Diff Detail

Event Timeline

huihuiz created this revision.Mar 16 2020, 4:42 PM
huihuiz updated this revision to Diff 250655.Mar 16 2020, 4:51 PM

minor update test name

This revision is now accepted and ready to land.Mar 16 2020, 5:01 PM
huihuiz updated this revision to Diff 250657.Mar 16 2020, 5:12 PM
Harbormaster failed remote builds in B49380: Diff 250655!
This revision was automatically updated to reflect the committed changes.