[all-commits] [llvm/llvm-project] 348bc7: [LibCalls] Infer same attrs for reallocf() as real...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jan 7 00:51:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 348bc76e3548c52dbcd442590ca0a7f5b09b7534
      https://github.com/llvm/llvm-project/commit/348bc76e3548c52dbcd442590ca0a7f5b09b7534
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  -----------
  [LibCalls] Infer same attrs for reallocf() as realloc()

reallocf() is the same as realloc() but frees the input pointer
on failure as well. We can infer the same attributes.

Also combine some cases that infer the same attributes and are
logically related.




More information about the All-commits mailing list