[AArch64] Consider tiny code model in emitLoadFromConstantPool.
authorHsiangkai Wang <hsiangkai@google.com>
Sat, 11 Feb 2023 15:17:35 +0000 (15:17 +0000)
committerHsiangkai Wang <hsiangkai@google.com>
Sun, 12 Feb 2023 06:02:47 +0000 (06:02 +0000)
commitc9a7b92a23bbafbb42eed3d999e43286eb8f44c6
tree39c2f03de7cd381e36131b8fde8b3be8b60198a8
parent6a75aec090986d3c897af7cfed8836ff36b38181
[AArch64] Consider tiny code model in emitLoadFromConstantPool.

We should be able to use load(literal) to access constant pool under
the tiny code model.

Reviewed By: aemerson

Differential Revision: https://reviews.llvm.org/D132536
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-imm.mir