[PATCH] D72322: [TypePromotion] Use vectors instead of sets

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 03:41:59 PST 2020


samparker created this revision.
samparker added reviewers: hans, rnk.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Remove the chance of non-deterministic insertion of zexts of the sources by using a SetVector, instead of SmallPtrSet. Do the same for sinks for consistency and to negate the issue from possibly happening. The SafeWrap instructions are now also stored in a SmallVector. The IRPromoter members of these structures have been changed to references.


https://reviews.llvm.org/D72322

Files:
  llvm/lib/CodeGen/TypePromotion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72322.236546.patch
Type: text/x-patch
Size: 6623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/78f919df/attachment.bin>


More information about the llvm-commits mailing list