AMDGPU/GlobalISel: Implement select() for G_FCONSTANT
authorTom Stellard <tstellar@redhat.com>
Tue, 15 May 2018 17:57:09 +0000 (17:57 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 15 May 2018 17:57:09 +0000 (17:57 +0000)
commite182b28ae4a5d467ed990fe50bd215795877f6fa
treeccdfa47dfa9c320308d80b6dcbf3b909b63ca54c
parentc5707b6c36a055ce5651cf8b19e7595d2f0e0826
AMDGPU/GlobalISel: Implement select() for G_FCONSTANT

Summary: Also clean up G_CONSTANT selection.

Reviewers: arsenm, nhaehnle

Subscribers: kzhuravl, wdng, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D46170

llvm-svn: 332379
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-constant.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-smrd.mir