[AMDGPU] Fix crash when dag-combining bitcast
authorRuiling Song <ruiling.song@amd.com>
Tue, 11 Aug 2020 07:35:46 +0000 (15:35 +0800)
committerRuiling Song <ruiling.song@amd.com>
Thu, 13 Aug 2020 02:23:13 +0000 (10:23 +0800)
commit18b1e675232b44c905bce28211286f7df6434f27
tree21b6f44cbb52221141e64756f40e8cbb6ff74bb6
parentb28e3db88d053b94250562f837758dc8a92a0a0f
[AMDGPU] Fix crash when dag-combining bitcast

From the code after the 'break', they are processing 64bit scalar and
vector bitcast. So I think the break-condition should be (cond1 || cond2)
This means we only execute following code if (64bit and dest-is-vector).

Also remove a previous fix which is not needed with this new fix.
(introduced in: 1349a04ef5f594dda705ec80474dda4837f26dba)

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D85804
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.ll