[Mlir-commits] [mlir] [flang] [WIP] Delayed privatization. (PR #79862)

Kareem Ergawy llvmlistbot at llvm.org
Mon Feb 5 03:48:20 PST 2024


================
@@ -496,8 +513,46 @@ void DataSharingProcessor::privatize() {
         copyFirstPrivateSymbol(&*mem);
       }
     } else {
-      cloneSymbol(sym);
-      copyFirstPrivateSymbol(sym);
+      if (useDelayedPrivatizationWhenPossible) {
----------------
ergawy wrote:

I generalized the delayed privatization logic in a new method: `doPrivatize` and use the same logic for all paths that need privatization.

https://github.com/llvm/llvm-project/pull/79862


More information about the Mlir-commits mailing list