]> granicus.if.org Git - llvm/commit
[AMDGPU] Do not insert an instruction into worklist twice in movetovalu
authorAlfred Huang <alfred.j.huang@gmail.com>
Fri, 14 Jul 2017 17:56:55 +0000 (17:56 +0000)
committerAlfred Huang <alfred.j.huang@gmail.com>
Fri, 14 Jul 2017 17:56:55 +0000 (17:56 +0000)
commit1356a150afcb05341b624f0eb933752d9020c6c2
tree408b3f64a3cc76b71a286da8a826784b228e2628
parent3a82e3504df2aa679b904202aa0f697e3832b8f7
[AMDGPU] Do not insert an instruction into worklist twice in movetovalu

In moveToVALU(), move to vector ALU is performed, all instrs in
the use chain will be visited. We do not want the same node to be
pushed to the visit worklist more than once.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstrInfo.h
test/CodeGen/AMDGPU/move-to-valu-worklist.ll [new file with mode: 0644]