summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64
diff options
context:
space:
mode:
authorAmara Emerson <aemerson@apple.com>2018-07-31 00:08:56 +0000
committerAmara Emerson <aemerson@apple.com>2018-07-31 00:08:56 +0000
commit58ce02a3b60897dcd40c6b33a1d3f23003248bdb (patch)
treeaa3680ca7f206a0df99c0f7ad67e325f4a01c781 /lib/Target/AArch64
parentbe764dbd77914a5a08ed586f6d12af2d8ed20e1c (diff)
[AArch64][GlobalISel] Make G_BLOCK_ADDR legal.
Differential Revision: https://reviews.llvm.org/D49902 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64')
-rw-r--r--lib/Target/AArch64/AArch64LegalizerInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/AArch64/AArch64LegalizerInfo.cpp b/lib/Target/AArch64/AArch64LegalizerInfo.cpp
index 9b8c0a34efb..327c758a7f8 100644
--- a/lib/Target/AArch64/AArch64LegalizerInfo.cpp
+++ b/lib/Target/AArch64/AArch64LegalizerInfo.cpp
@@ -293,6 +293,8 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST) {
atomicOrderingAtLeastOrStrongerThan(0, AtomicOrdering::Monotonic)));
}
+ getActionDefinitionsBuilder(G_BLOCK_ADDR).legalFor({p0});
+
// Merge/Unmerge
for (unsigned Op : {G_MERGE_VALUES, G_UNMERGE_VALUES}) {
unsigned BigTyIdx = Op == G_MERGE_VALUES ? 0 : 1;