Skip to content

Commit d4fde49

Browse files
authored
Investigate memory error from lstm (rust-lang#623)
1 parent c7473b8 commit d4fde49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enzyme/Enzyme/CacheUtility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ AllocaInst *CacheUtility::createCacheForScope(LimitContext ctx, Type *T,
972972
/*incrementing value to increase when it goes past a power of two*/
973973
containedloops.back().first.incvar,
974974
/*buffer size (element x subloops)*/
975-
build.CreateMul(tsize, sublimits[i].first, "", /*NUW*/ true,
975+
build.CreateMul(tsize, size, "", /*NUW*/ true,
976976
/*NSW*/ true)};
977977

978978
assert(allocation->getType()->getPointerElementType() == myType);

0 commit comments

Comments
 (0)