[all-commits] [llvm/llvm-project] 3c7f74: [TypePromotion] Use SetVectors instead of PtrSets

Sam Parker via All-commits all-commits at lists.llvm.org
Tue Jan 7 06:52:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c7f740f284274636db72fb84e563bd5b55c8eb8
      https://github.com/llvm/llvm-project/commit/3c7f740f284274636db72fb84e563bd5b55c8eb8
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp

  Log Message:
  -----------
  [TypePromotion] Use SetVectors instead of PtrSets

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 small 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.

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




More information about the All-commits mailing list