[PATCH] D134241: GuardWidening: Pass through AssumptionCache

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 06:20:51 PDT 2022


arsenm added a comment.

In D134241#3802642 <https://reviews.llvm.org/D134241#3802642>, @arsenm wrote:

> In D134241#3801898 <https://reviews.llvm.org/D134241#3801898>, @mkazantsev wrote:
>
>> What's the motivation for this?
>
> I ran into a compile time regression and found isDereferenceableAndAlignedPointer is 2x slower without an AssumptionCache, so I'm just threading through the argument for it everywhere

2x slower if the context instruction is passed without the cache


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

https://reviews.llvm.org/D134241



More information about the llvm-commits mailing list