[PATCH] D41719: [InlineCost] Prevent infinite recursion on function pointers
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 12:07:09 PST 2018
efriedma added a comment.
> I assume that code isn't working correctly with the testcases here can't we just fix that?
Even if we did, we would still need some sort of arbitrary limit to handle large callgraphs (if you have Bar1 calls Bar2 calls Bar3...Bar1000, or something like that, we'll eventually overflow compiler's stack through recursion even if the IR doesn't contain any recursion).
https://reviews.llvm.org/D41719
More information about the llvm-commits
mailing list