[PATCH] D34726: AMDGPU/SI: Do not insert an instruction into worklist twice in movetovalu

Alfred Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 11:27:57 PDT 2017


alfred.j.huang updated this revision to Diff 106076.
alfred.j.huang added a comment.

Switch to SmallSetVector in place of SmallPtrVector so an item is inserted into the container once only.  The order of pushing and popping are the same as before.


https://reviews.llvm.org/D34726

Files:
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34726.106076.patch
Type: text/x-patch
Size: 5873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/c07372e4/attachment.bin>


More information about the llvm-commits mailing list