Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Nov 3, 2024
1 parent 1612638 commit 1cbb0d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/ActivityAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2729,7 +2729,8 @@ bool ActivityAnalyzer::isValueInactiveFromUsers(TypeResults const &TR,
(ConstantValues.count(SI->getValueOperand()) ||
isa<ConstantInt>(SI->getValueOperand())))
continue;
if (UA == UseActivity::None) {
if (UA == UseActivity::None ||
UA == UseActivity::OnlyNonPointerStores) {
// If storing into itself, all potential uses are taken care of
// elsewhere in the recursion.
bool shouldContinue = true;
Expand Down

0 comments on commit 1cbb0d4

Please sign in to comment.