[llvm] Teach FastISel for AArch64 about tagged globals
authorLeonard Chan <leonardchan@google.com>
Mon, 5 Dec 2022 22:16:55 +0000 (22:16 +0000)
committerLeonard Chan <leonardchan@google.com>
Mon, 5 Dec 2022 22:16:55 +0000 (22:16 +0000)
commit7358c29a42714eb8d7d7bcdb58688d20430689e4
tree6ffbd86650a11df18c405c7d5f80f5ae03094635
parent3c278e5e274b3aaa173eae71ccd861c8729b37c0
[llvm] Teach FastISel for AArch64 about tagged globals

This addresses https://github.com/llvm/llvm-project/issues/57750. For
some globals, the tag wasn't propagated correctly because the necessary
movk wasn't emitted sometimes.

Differential Revision: https://reviews.llvm.org/D138615
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/test/CodeGen/AArch64/arm64-fast-isel-tag.ll [new file with mode: 0644]