Skip to content

Commit

Permalink
JLInstSimplify restore meta load
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed May 20, 2024
1 parent 81f0502 commit 0573a7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/JLInstSimplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ bool jlInstSimplify(llvm::Function &F, TargetLibraryInfo &TLI,
for (int i = 0; i < 2; i++) {
Value *start = (i == 0) ? lhsv : rhsv;
Instruction *starti = dyn_cast<Instruction>(start);
if (!isa<Argument>(start))
continue;
if (!starti) {
if (!isa<Argument>(start))
continue;
starti = &cast<Argument>(start)
->getParent()
->getEntryBlock()
Expand Down

0 comments on commit 0573a7c

Please sign in to comment.