Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Dec 23, 2024
1 parent 4af85d4 commit d7c27ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/llvm-alloc-opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ void Optimizer::moveToStack(CallInst *orig_inst, size_t sz, bool has_ref, AllocF
return;
}
if (pass.gc_loaded_func == callee) {
// TODO: handle data pointer forwarding, length forwarding, and fence removal
user->replaceUsesOfWith(orig_i, Constant::getNullValue(orig_i->getType()));
return;
}
Expand Down

0 comments on commit d7c27ce

Please sign in to comment.