[PATCH] D124878: [Bitcode] Include indirect users of BlockAddresses in bitcode

Wende Tan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 14:03:37 PDT 2022


twd2 added a comment.

In D124878#3504573 <https://reviews.llvm.org/D124878#3504573>, @nickdesaulniers wrote:

> In D124878#3504571 <https://reviews.llvm.org/D124878#3504571>, @twd2 wrote:
>
>> Thank you all for reviewing.
>
> You're welcome. Thanks for the patch!
>
>> Could you please commit this patch on my behalf? Wende Tan <twd2.me at gmail.com>
>
> Sure, I can take care of that.
>
>> And, a small question: should we use `SmallSetVector` instead in `SmallPtrSet<Function *, 4> BlockAddressUsers;` to make sure that the order of users encoded in the bitcode is independent of the internal algorithm of `SmallPtrSet`?
>
> We don't iterate `BlockAddressUsersVisited`; I think the code is fine as is. Am I missing something?

It's `BlockAddressUsers` in Line 3368, your patch added it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124878/new/

https://reviews.llvm.org/D124878



More information about the llvm-commits mailing list