diff options
| author | Tim Northover <tnorthover@apple.com> | 2017-02-14 20:56:29 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2017-02-14 20:56:29 +0000 |
| commit | 398c5f57f946c4ea4156fc88508dc095f01826b7 (patch) | |
| tree | ae1256dce5569428065897b9c32e499a348174ff /llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp | |
| parent | c2f8956313bb4d32f4af13b097033b20cec0b3f4 (diff) | |
| download | bcm5719-llvm-398c5f57f946c4ea4156fc88508dc095f01826b7.tar.gz bcm5719-llvm-398c5f57f946c4ea4156fc88508dc095f01826b7.zip | |
GlobalISel: deal with new G_PTR_MASK instruction on AArch64.
It's just an AND-immediate instruction for us, surprisingly simple to select.
llvm-svn: 295104
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp index c978be9ab10..fc224d22a13 100644 --- a/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp @@ -52,6 +52,8 @@ AArch64LegalizerInfo::AArch64LegalizerInfo() { for (auto Ty : {s1, s8, s16, s32}) setAction({G_GEP, 1, Ty}, WidenScalar); + setAction({G_PTR_MASK, p0}, Legal); + for (unsigned BinOp : {G_LSHR, G_ASHR, G_SDIV, G_UDIV}) { for (auto Ty : {s32, s64}) setAction({BinOp, Ty}, Legal); |

