diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-26 01:42:13 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-01-26 01:42:13 +0000 |
commit | cdc201fcdea869c6bd6290bd2611714eb195db0c (patch) | |
tree | dc09b2b6c7a60f8379495edf412ffa4bfd5e8256 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | bb01a098b15f1a87fee0f8882c28e6b2141eadda (diff) | |
download | llvm-cdc201fcdea869c6bd6290bd2611714eb195db0c.zip llvm-cdc201fcdea869c6bd6290bd2611714eb195db0c.tar.gz llvm-cdc201fcdea869c6bd6290bd2611714eb195db0c.tar.bz2 |
GlobalISel: Fix address space limit in LLT
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.
llvm-svn: 352264
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions