Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Nov 4, 2024
1 parent a69f47c commit 5d90df3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions enzyme/Enzyme/DifferentialUseAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ void DifferentialUseAnalysis::minCut(const DataLayout &DL, LoopInfo &OrigLI,
}
continue;
}

// When ambiguous, push to cache the last value in a computation chain
// This should be considered in a cost for the max flow
if (mp.size() == 1 && !Required.count(V)) {
Expand Down Expand Up @@ -988,7 +988,6 @@ void DifferentialUseAnalysis::minCut(const DataLayout &DL, LoopInfo &OrigLI,
}
}


// Fix up non-repeatable writing calls that chain within rematerialized
// allocations. We could iterate from the keys of the valuemap, but that would
// be a non-determinstic ordering.
Expand Down
8 changes: 4 additions & 4 deletions enzyme/Enzyme/GradientUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8177,7 +8177,7 @@ void GradientUtils::computeMinCache() {
notForAnalysis);
if (oneneed) {
knownRecomputeHeuristic[&I] = false;

CountTrackedPointers T(I.getType());
assert(!T.derived);
} else
Expand Down Expand Up @@ -8273,10 +8273,10 @@ void GradientUtils::computeMinCache() {
assert(!MinReq.count(V));
unnecessaryIntermediates.insert(cast<Instruction>(V));
}

if (NeedGraph.count(V) && MinReq.count(V)) {
CountTrackedPointers T(V->getType());
assert(!T.derived);
CountTrackedPointers T(V->getType());
assert(!T.derived);
}
}
}
Expand Down

0 comments on commit 5d90df3

Please sign in to comment.