Skip to content

Commit

Permalink
Mark more as nofree/inactive (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jan 25, 2024
1 parent b2151f8 commit 1b8aff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/ActivityAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ const char *DemangledKnownInactiveFunctionsStartingWith[] = {
"std::__1::discard_block_engine",
"std::__1::independent_bits_engine",
"std::__1::shuffle_order_engine",

"std::__1::basic_streambuf",
"std::__1::basic_stringbuf",

"std::__detail::_Prime_rehash_policy",
"std::__detail::_Hash_code_base",
Expand Down
3 changes: 3 additions & 0 deletions enzyme/Enzyme/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5846,6 +5846,9 @@ llvm::Function *EnzymeLogic::CreateNoFree(RequestContext context, Function *F) {
}

if (F->empty()) {
if (EnzymeAssumeUnknownNoFree) {
return F;
}
if (EnzymeEmptyFnInactive) {
return F;
}
Expand Down

0 comments on commit 1b8aff2

Please sign in to comment.