OSDN Git Service

[AMDGPU] Fix read-undef flags when schedule is reverted
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 28 Feb 2017 16:26:27 +0000 (16:26 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 28 Feb 2017 16:26:27 +0000 (16:26 +0000)
commitb57bf30b4704bbbdcf0e03ae76fddac69cacf7f0
treea5eadd6146b89824ad45a1dd02cd39cdcf991318
parent3d50c64c92f5d42862cfd83602626c91bfd5ecd0
[AMDGPU] Fix read-undef flags when schedule is reverted

If two subregs of the same register are defined and we need to revert
schedule changing def order, we will end up with both instructions
having def,read-undef flags because adjustLaneLiveness() will only set
this flag but will not remove it.

Fix this by removing read-undef flags before calling adjustLaneLiveness.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/GCNSchedStrategy.cpp