summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-04 08:35:37 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-04 08:35:37 +0000
commit412e0bf8f331e540ea315726e86e41f994f88e43 (patch)
treef1d0230f6e14fe7e6f0e995fa89e9727a625bee6 /llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
parentbe9521acaacc8987f27864dab5acc5673aa0c631 (diff)
downloadbcm5719-llvm-412e0bf8f331e540ea315726e86e41f994f88e43.tar.gz
bcm5719-llvm-412e0bf8f331e540ea315726e86e41f994f88e43.zip
AMDGPU/GlobalISel: Select G_PTRTOINT
llvm-svn: 373715
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index c5e60ed77be..3adbeabc616 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -1670,6 +1670,7 @@ bool AMDGPUInstructionSelector::select(MachineInstr &I) {
return selectG_UADDO_USUBO(I);
case TargetOpcode::G_INTTOPTR:
case TargetOpcode::G_BITCAST:
+ case TargetOpcode::G_PTRTOINT:
return selectCOPY(I);
case TargetOpcode::G_CONSTANT:
case TargetOpcode::G_FCONSTANT:
OpenPOWER on IntegriCloud