[Mlir-commits] [mlir] [mlir][acc] Add LegalizeDataValues support for DeclareEnterOp (PR #138008)
Razvan Lupusoru
llvmlistbot at llvm.org
Wed Apr 30 11:50:51 PDT 2025
================
@@ -105,6 +144,10 @@ class LegalizeDataValuesInRegion
func::FuncOp funcOp = getOperation();
bool replaceHostVsDevice = this->hostToDevice.getValue();
+ // Get dominance info for the function
+ DominanceInfo domInfo(funcOp);
----------------
razvanlupusoru wrote:
Let's compute this lazily - only compute it first time when you encounter acc.declare_enter.
https://github.com/llvm/llvm-project/pull/138008
More information about the Mlir-commits
mailing list