AMDGPU: Make fixing i1 copies robust against re-ordering
authorNicolai Haehnle <nhaehnle@gmail.com>
Thu, 27 Jun 2019 16:56:44 +0000 (16:56 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Thu, 27 Jun 2019 16:56:44 +0000 (16:56 +0000)
commitc71a1c39025ae135543eb6c2130e8f628b380dbe
tree97b451194a8f3f4bdc82498310824816fb14a171
parent704b871cc4114b405e3b1ae09bd3909a3f9bfa33
AMDGPU: Make fixing i1 copies robust against re-ordering

Summary:
The new test case led to incorrect code.

Change-Id: Ief48b227e97aa662dd3535c9bafb27d4a184efca

Reviewers: arsenm, david-salinas

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

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SILowerI1Copies.cpp
test/CodeGen/AMDGPU/i1-copies-rpo.mir [new file with mode: 0644]