[all-commits] [llvm/llvm-project] bcef4d: [InstCombine] Correct strtol folding with nonnull ...

Martin Sebor via All-commits all-commits at lists.llvm.org
Mon Aug 1 15:47:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcef4d238d113c61127575bf5dd0328f97bda9e9
      https://github.com/llvm/llvm-project/commit/bcef4d238d113c61127575bf5dd0328f97bda9e9
  Author: Martin Sebor <msebor at redhat.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/str-int-4.ll
    M llvm/test/Transforms/InstCombine/str-int-5.ll

  Log Message:
  -----------
  [InstCombine] Correct strtol folding with nonnull endptr

Reflect in the pointer's offset the length of the leading part
of the consumed string preceding the first converted digit.

Reviewed By: efriedma

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




More information about the All-commits mailing list