diff --git a/enzyme/Enzyme/ActivityAnalysis.cpp b/enzyme/Enzyme/ActivityAnalysis.cpp index e8463ab0a9f..34dd13fb9f4 100644 --- a/enzyme/Enzyme/ActivityAnalysis.cpp +++ b/enzyme/Enzyme/ActivityAnalysis.cpp @@ -2879,6 +2879,9 @@ bool ActivityAnalyzer::isValueInactiveFromUsers(TypeResults const &TR, } continue; } + if (UA == PUA && TmpOrig == val) { + continue; + } if (EnzymePrintActivity) llvm::errs() << " -- failed to continue indirect store2 from " << *val << " via " << *TmpOrig_2[0] << "\n";