[Attributor][FIX] Ensure we use the right AAExecutionDomain
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 2 Feb 2023 09:06:00 +0000 (01:06 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 2 Feb 2023 10:27:54 +0000 (02:27 -0800)
commit18a2975b57830a231e2b8f0299969edfc4f8477c
tree3ad34bf5ea8cf7c2304e4cf841849e35a564b287
parent88ac9138f4eb7b8c06154dd6e3f801d9882b66d7
[Attributor][FIX] Ensure we use the right AAExecutionDomain

Before we might have ended up queriying the AAExecutionDomain of a
different function, which resulted in wrong optimistic results.

Partially fixes https://github.com/llvm/llvm-project/issues/60425
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/Attributor/reduced/aa_execution_domain_wrong_fn.ll [new file with mode: 0644]