[PATCH] D96949: [FuncAttrs] Add willreturn to readonly callsites in mustprogress fns.

Jeroen Dobbelaere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 10:05:52 PST 2021


jeroen.dobbelaere added a comment.

In D96949#2571994 <https://reviews.llvm.org/D96949#2571994>, @nikic wrote:

> Do you have any particular examples? I would expect that most builtins get lowered to intrinsics and those should already have all the necessary attributes, but there's probably some cases that fell through.

I am not able to figure out a useful one, based on the list in `clang/test/CodeGen/complex-builtins.c` and `clang/test/CodeGen/complex-libcalls.c`.
I do see expected optimization to happen, but at the same time I am not seeing that they get annotated with 'willreturn'.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96949



More information about the llvm-commits mailing list