This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix address space limit in LLT
ClosedPublic

Authored by arsenm on Jan 25 2019, 9:45 AM.

Details

Summary

The IR enforced limit for the address space is 24-bits, but LLT was
only using 23-bits. Additionally, the argument to the constructor was
truncating to 16-bits.

A similar problem still exists for the number of vector elements. The
IR enforces no limit, so if you try to use a vector with > 65535
elements the IRTranslator asserts in the LLT constructor.

Diff Detail

Event Timeline

arsenm created this revision.Jan 25 2019, 9:45 AM
aemerson accepted this revision.Jan 25 2019, 4:46 PM
This revision is now accepted and ready to land.Jan 25 2019, 4:46 PM
arsenm closed this revision.Jan 25 2019, 5:42 PM

r352264