Skip to content

Commit

Permalink
disable recursive inlining when any FPOpt logger is found
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrantq committed Jan 23, 2025
1 parent 18428b8 commit e79450d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions enzyme/Enzyme/FunctionUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,13 @@ Function *PreProcessCache::preprocessForClone(Function *F,
setFullWillReturn(NewF);

if (EnzymePreopt) {
#ifdef ENZYME_ENABLE_FPOPT
// Disable recursive inlining since no FPOpt metadata is attached
// to inlined instructions
if (!hasFPOptLogger(F->getParent()) && EnzymeInline) {
#else
if (EnzymeInline) {
#endif
ForceRecursiveInlining(NewF, /*Limit*/ EnzymeInlineCount);
setFullWillReturn(NewF);
PreservedAnalyses PA;
Expand Down

0 comments on commit e79450d

Please sign in to comment.