HomePhabricator

[AMDGPU] Fix crash when dag-combining bitcast

Authored by ruiling on Aug 11 2020, 12:35 AM.

Description

[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

Details

Committed
ruilingAug 12 2020, 7:23 PM
Reviewer
arsenm
Differential Revision
D85804: [AMDGPU] Fix crash when dag-combining bitcast
Parents
rGb28e3db88d05: Merge OpFolderDialectInterface with DialectFoldInterface (NFC)
Branches
Unknown
Tags
Unknown