[all-commits] [llvm/llvm-project] 2807c4: [InstCombine] add a strnlen handler stub.

Martin Sebor via All-commits all-commits at lists.llvm.org
Tue Apr 26 13:03:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2807c420cd23dac7f7624c8f9038c2ec251831d9
      https://github.com/llvm/llvm-project/commit/2807c420cd23dac7f7624c8f9038c2ec251831d9
  Author: Martin Sebor <msebor at redhat.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/strnlen-1.ll
    M llvm/test/Transforms/InstCombine/strnlen-2.ll
    M llvm/test/Transforms/InstCombine/strnlen-3.ll
    M llvm/test/Transforms/InstCombine/strnlen-5.ll
    M llvm/test/Transforms/InstCombine/strnlen-6.ll

  Log Message:
  -----------
  [InstCombine] add a strnlen handler stub.

Reviewed By: nikic

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


  Commit: 25febbd155a5f2edcbe6115e6944cf9ee0367f5e
      https://github.com/llvm/llvm-project/commit/25febbd155a5f2edcbe6115e6944cf9ee0367f5e
  Author: Martin Sebor <msebor at redhat.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/strnlen-1.ll
    M llvm/test/Transforms/InstCombine/strnlen-2.ll
    M llvm/test/Transforms/InstCombine/strnlen-3.ll
    M llvm/test/Transforms/InstCombine/strnlen-5.ll

  Log Message:
  -----------
  [InstCombine] Fold strnlen with a bound of zero and one.

Reviewed By: nikic

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


  Commit: 10c99ce67d541eb783971f8237b96530b821479a
      https://github.com/llvm/llvm-project/commit/10c99ce67d541eb783971f8237b96530b821479a
  Author: Martin Sebor <msebor at redhat.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/memrchr-2.ll
    M llvm/test/Transforms/InstCombine/memrchr-3.ll
    M llvm/test/Transforms/InstCombine/memrchr-4.ll

  Log Message:
  -----------
  [InstCombine] Fold memrchr calls with constant size, bail on excessive.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D123626
Differential Revision: https://reviews.llvm.org/D123628


  Commit: ce8f42d4af2cf56c96f5a8cc4c4a02bf6b790ccc
      https://github.com/llvm/llvm-project/commit/ce8f42d4af2cf56c96f5a8cc4c4a02bf6b790ccc
  Author: Martin Sebor <msebor at redhat.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/memrchr-2.ll
    M llvm/test/Transforms/InstCombine/memrchr-3.ll

  Log Message:
  -----------
  [InstCombine] Fold memrchr calls with a constant character.

Reviewed By: nikic

Differential Revision: //reviews.llvm.org/D123629


Compare: https://github.com/llvm/llvm-project/compare/8628b54038e9...ce8f42d4af2c


More information about the All-commits mailing list