Handle mark_dependence in Differentiation

This commit is contained in:
Meghana Gupta
2023-10-27 00:59:26 -07:00
parent 61ce3a3af2
commit baebc7d00b
6 changed files with 108 additions and 96 deletions

View File

@@ -151,6 +151,12 @@ bool ArrayAllocation::recursivelyCollectUses(ValueBase *Def) {
continue;
}
if (auto *MDI = dyn_cast<MarkDependenceInst>(User)) {
if (Def != MDI->getBase())
return false;
continue;
}
// Check array semantic calls.
ArraySemanticsCall ArrayOp(User);
switch (ArrayOp.getKind()) {