Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 23, 2024
1 parent 3edebbe commit 50ee0f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enzyme/Enzyme/GradientUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3822,6 +3822,9 @@ bool GradientUtils::legalRecompute(const Value *val,
}
}

if (isa<AtomicRMWInst>(val))
return false;

if (auto phi = dyn_cast<PHINode>(val)) {
if (auto uiv = hasUninverted(val)) {
if (auto dli = dyn_cast_or_null<LoadInst>(uiv)) {
Expand Down

0 comments on commit 50ee0f4

Please sign in to comment.