[OpenMP] Use Attributor to find underlying objects of stores
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 23 Dec 2022 02:18:40 +0000 (18:18 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 10 Jan 2023 07:34:52 +0000 (23:34 -0800)
commit22c898dbfd3a79c90a78dfc2af28928eeb167ecf
treed567ac44811e2d4fa6c0e6cb98b0692f60009f16
parente37cb6390c892b88efc511bc616e34f88443a133
[OpenMP] Use Attributor to find underlying objects of stores

When we see a store in generic mode we need to decide if we should guard
it for SPMDzation. This patch changes the getUnderlyingObjects call to
the more optimistic getAssumedUnderlyingObjects call to identify more
thread local pointers.
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/reduced_pointer_info_assertion.ll
llvm/test/Transforms/OpenMP/spmdization_guarding.ll