[all-commits] [llvm/llvm-project] 4683ce: [InferAttrs] Give strnlen the same attributes as s...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Thu Dec 30 11:45:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4683ce2cd899b2d682453e173c3466fa270c09f7
      https://github.com/llvm/llvm-project/commit/4683ce2cd899b2d682453e173c3466fa270c09f7
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-12-30 (Thu, 30 Dec 2021)

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

  Log Message:
  -----------
  [InferAttrs] Give strnlen the same attributes as strlen

This moves the only string function out of the big list of math funcs.
And let's us CSE strnlen calls.




More information about the All-commits mailing list