diff options
author | Kristof Beyls <kristof.beyls@arm.com> | 2017-01-19 13:32:14 +0000 |
---|---|---|
committer | Kristof Beyls <kristof.beyls@arm.com> | 2017-01-19 13:32:14 +0000 |
commit | 56c4b1ef06c4c710b1ee7c4b9de3092825121c11 (patch) | |
tree | aafdbeea23fa93a077b40bc8a5fa4cb5169143b2 /lib/Target/AArch64/AArch64InstructionSelector.cpp | |
parent | f7484a051aef80d47298566de02055f17f3d7dd0 (diff) |
[GlobalISel] Pointers are legal operands for G_SELECT on AArch64
Differential Revision: https://reviews.llvm.org/D28805
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/AArch64InstructionSelector.cpp')
-rw-r--r-- | lib/Target/AArch64/AArch64InstructionSelector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64InstructionSelector.cpp b/lib/Target/AArch64/AArch64InstructionSelector.cpp index f8565379998..3163f6e5228 100644 --- a/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -1026,7 +1026,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I) const { if (Ty == LLT::scalar(32)) { CSelOpc = AArch64::CSELWr; - } else if (Ty == LLT::scalar(64)) { + } else if (Ty == LLT::scalar(64) || Ty == LLT::pointer(0, 64)) { CSelOpc = AArch64::CSELXr; } else { return false; |