[PATCH] D78148: [CodeGen] make isTriviallyRecursive handle more trivial recursion

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 14:05:26 PDT 2020


efriedma added a comment.

Could you go into a little more detail what problem you're trying to resolve?

isTriviallyRecursive is specifically a narrow hack to handle weird cases where a function is trying to hide the fact that it's calling itself, in ways that would convince gcc that the called function is different.  If a function is actually explicitly calling itself, it's on the user to make sure they don't write an infinite loop, I think.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78148/new/

https://reviews.llvm.org/D78148





More information about the cfe-commits mailing list