[OpenMP][FIX] Ensure flag to disable de-globalization works properly
If the user disables de-globalization we did not seed the AAHeapToShared and AAHeapToStack but we still could end up with them through in-flight lookups. With this patch we disable AAHeapToShared completely if the user disabled de-globalization. Heap-2-stack is still run though. Differential Revision: https://reviews.llvm.org/D121059
This commit is contained in:
parent
1660288b28
commit
5b4acb20ff
|
@ -2963,6 +2963,11 @@ struct AAHeapToSharedFunction : public AAHeapToShared {
|
|||
}
|
||||
|
||||
void initialize(Attributor &A) override {
|
||||
if (DisableOpenMPOptDeglobalization) {
|
||||
indicatePessimisticFixpoint();
|
||||
return;
|
||||
}
|
||||
|
||||
auto &OMPInfoCache = static_cast<OMPInformationCache &>(A.getInfoCache());
|
||||
auto &RFI = OMPInfoCache.RFIs[OMPRTL___kmpc_alloc_shared];
|
||||
|
||||
|
|
Loading…
Reference in a new issue