HomePhabricator

[AMDGPU] With XNACK, cannot clause a load with result coalesced with operand

Authored by tpr on Jan 23 2019, 5:38 AM.

Description

[AMDGPU] With XNACK, cannot clause a load with result coalesced with operand

Summary:
With XNACK, an smem load whose result is coalesced with an operand (thus
it overwrites its own operand) cannot appear in a clause, because some
other instruction might XNACK and restart the whole clause.

The clause breaker already realized that an smem that overwrites an
operand cannot appear in a clause, and broke the clause. The problem
that this commit fixes is that the SIFormMemoryClauses optimization
formed a bundle with early clobber, which caused the earlier code that
set up the coalesced operand to be removed as dead.

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

Change-Id: I703c4d5b0bf7d6060222bec491f45c18bb3c0016
llvm-svn: 351950

Details

Committed
tprJan 23 2019, 5:38 AM
Differential Revision
D57008: [AMDGPU] With XNACK, cannot clause a load with result coalesced with operand
Parents
rG53c3c2c61c3c: Disable test added in r351916.
Branches
Unknown
Tags
Unknown