Skip to content

Commit a92bc18

Browse files
authored
Mark ffence as not writing specific memory (#2438)
1 parent 4d82802 commit a92bc18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enzyme/Enzyme/Utils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,9 @@ bool writesToMemoryReadBy(const TypeResults *TR, llvm::AAResults &AA,
23582358
using namespace llvm;
23592359
if (isa<StoreInst>(maybeReader))
23602360
return false;
2361+
if (isa<FenceInst>(maybeReader)) {
2362+
return false;
2363+
}
23612364
if (auto call = dyn_cast<CallInst>(maybeWriter)) {
23622365
StringRef funcName = getFuncNameFromCall(call);
23632366

0 commit comments

Comments
 (0)