[all-commits] [llvm/llvm-project] 0db4b1: [SimplifyLibCalls] Adjust code comment in optimize...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Thu Oct 6 11:01:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0db4b1d1a873d8dc7f6fc312ae37fe15631dd037
      https://github.com/llvm/llvm-project/commit/0db4b1d1a873d8dc7f6fc312ae37fe15631dd037
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp

  Log Message:
  -----------
  [SimplifyLibCalls] Adjust code comment in optimizeStringLength. NFC

The limitation in LibCallSimplifier::optimizeStringLength to only
optimize when the string is an i8 array was changed already in
commit 50ec0b5dceff1f3fe93 back in 2017.

We still only simplify when 's' points at an array of 'CharSize', so
the comment is still valid in the sense that we do not support
arbitrary array types.

Differential Revision: https://reviews.llvm.org/D135261




More information about the All-commits mailing list