[OpenMP] Ensure AAHeapToShared is only looking at one function
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 10 Jan 2023 22:01:00 +0000 (14:01 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 10 Jan 2023 23:03:51 +0000 (15:03 -0800)
commitc3de9c1c7b93683ab9d390cb2d830204bfa657bc
tree30c15bff48edca5fb02e7e448c51158c9441d7ee
parentd1033e3cadf46508222787f63a1e5c3a5e3dbffa
[OpenMP] Ensure AAHeapToShared is only looking at one function

When we collect and process allocations we did not verify the call
against the anchor scope / associated function. This should be done to
avoid processing calls multiple times and generally looking at calls not
in the AAs scope.
llvm/lib/Transforms/IPO/OpenMPOpt.cpp