HomePhabricator

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

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

Details

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