]> granicus.if.org Git - llvm/commit
[AMDGPU] Enable merging m0 initializations.
authorAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 15 Jul 2019 22:07:05 +0000 (22:07 +0000)
committerAustin Kerbow <Austin.Kerbow@amd.com>
Mon, 15 Jul 2019 22:07:05 +0000 (22:07 +0000)
commitb7cef668c0bd4ee48bb77ec726fbcb4fdf9e55a3
tree085d5f02e7dcc46cc73f07548b94f7393f55da68
parent5eed3f2bbb33d338663ceb81a5efb24cf71c763e
[AMDGPU] Enable merging m0 initializations.

Summary:
Enable hoisting and merging m0 defs that are initialized with the same
immediate value. Fixes bug where removed instructions are not considered
to interfere with other inits, and make sure to not hoist inits before block
prologues.

Reviewers: rampitec, arsenm

Reviewed By: rampitec

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
test/CodeGen/AMDGPU/merge-m0.mir