[Mlir-commits] [flang] [mlir] [WIP] Delayed privatization. (PR #79862)
Kareem Ergawy
llvmlistbot at llvm.org
Fri Feb 2 00:24:21 PST 2024
================
@@ -496,8 +513,46 @@ void DataSharingProcessor::privatize() {
copyFirstPrivateSymbol(&*mem);
}
} else {
- cloneSymbol(sym);
- copyFirstPrivateSymbol(sym);
+ if (useDelayedPrivatizationWhenPossible) {
----------------
ergawy wrote:
> Is support for delayed privatization planned for common blocks too (in the if branch above)?
The plan is to indeed support all possible scenarios. I just started by prototyping the whole idea end-to-end (from FIR+OMP MLIR down to LLVM IR) which I just finished. So I will start fleshing out things a bit more now and look into supporting more variable types.
https://github.com/llvm/llvm-project/pull/79862
More information about the Mlir-commits
mailing list