Skip to content

Commit

Permalink
Fix load is load error (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed May 7, 2024
1 parent cbccccf commit 7d09d5e
Show file tree
Hide file tree
Showing 2 changed files with 1,814 additions and 4 deletions.
5 changes: 1 addition & 4 deletions enzyme/Enzyme/GradientUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,10 +834,7 @@ Value *GradientUtils::unwrapM(Value *const val, IRBuilder<> &BuilderM,
if (orig && knownRecomputeHeuristic.find(orig) !=
knownRecomputeHeuristic.end()) {
if (!knownRecomputeHeuristic[orig]) {
if (!legalRecompute(orig, available, &BuilderM))
return nullptr;

assert(isa<LoadInst>(orig) == isa<LoadInst>(val));
return nullptr;
}
}
}
Expand Down
Loading

0 comments on commit 7d09d5e

Please sign in to comment.