Skip to content

Commit 1bd0e82

Browse files
authored
Vectorize write barrier (rust-lang#823)
1 parent c453098 commit 1bd0e82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

enzyme/Enzyme/AdjointGenerator.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9851,7 +9851,10 @@ class AdjointGenerator
98519851
{
98529852
if (!gutils->isConstantValue(arg)) {
98539853
Value *ptrshadow = gutils->invertPointerM(arg, BuilderZ);
9854-
iargs.push_back(ptrshadow);
9854+
applyChainRule(
9855+
BuilderZ,
9856+
[&](Value *ptrshadow) { iargs.push_back(ptrshadow); },
9857+
ptrshadow);
98559858
}
98569859
}
98579860
if (iargs.size()) {

0 commit comments

Comments
 (0)