Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 6, 2024
1 parent 5134fa3 commit 9692a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/MLIR/Analysis/ActivityAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ static SmallVector<Value> getPotentialIncomingValues(OpResult res) {
}
} else if (auto iface = dyn_cast<ADDataFlowOpInterface>(owner)) {
for (auto val : iface.getPotentialIncomingValues(res))
potentialSources.push_back(val);
potentialSources.push_back(val);
return potentialSources;
} else {
// assume all inputs potentially flow into all op results
Expand Down Expand Up @@ -1119,7 +1119,7 @@ static SmallVector<Value> getPotentialIncomingValues(BlockArgument arg) {

} else if (auto iface = dyn_cast<ADDataFlowOpInterface>(owner)) {
for (auto val : iface.getPotentialIncomingValues(res))
potentialSources.insert(val);
potentialSources.insert(val);
return potentialSources.takeVector();
} else {
// Conservatively assume any op operand and any terminator operand of
Expand Down

0 comments on commit 9692a9c

Please sign in to comment.