[LICM] Extract helper for getClobberingMemoryAccess()
authorNikita Popov <npopov@redhat.com>
Mon, 3 Apr 2023 10:01:53 +0000 (12:01 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 3 Apr 2023 10:02:55 +0000 (12:02 +0200)
commit0b9259c00de173fda48d66cbbd0ae697a6dff98f
tree3837587e8d2f8f84591ebcebefadc4c40435766b
parent932911d6b10a7503a0b9c5e1a2ddb581cc3421bf
[LICM] Extract helper for getClobberingMemoryAccess()

Extract a helper that does the clobber walk while taking into
account the cap. Slightly reflow things to check this first in
the store case, before we start walking over all accesses in the
loop.
llvm/lib/Transforms/Scalar/LICM.cpp