Skip to content

Commit 5bd5060

Browse files
committed
Ignore icmp usage of sret
1 parent 3311bc7 commit 5bd5060

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enzyme/Enzyme/CApi.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,9 @@ bool needsReRooting(llvm::Argument *arg, bool &anyJLStore,
17661766
for (auto &&[I, cur, byteOffset] : findAllUsersOf(arg)) {
17671767
assert(I->getParent()->getParent() == arg->getParent());
17681768

1769+
if (isa<ICmpInst>(I)) {
1770+
continue;
1771+
}
17691772
if (isa<LoadInst>(I)) {
17701773
continue;
17711774
}

0 commit comments

Comments
 (0)