[all-commits] [llvm/llvm-project] 262eba: Revert "[ValueTracking] Make getStringLenth aware ...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Wed Apr 13 10:17:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 262eba01b33fd5cda5e4b65a744bac9d87cd7453
      https://github.com/llvm/llvm-project/commit/262eba01b33fd5cda5e4b65a744bac9d87cd7453
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-04-13 (Wed, 13 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/strlen-1.ll

  Log Message:
  -----------
  Revert "[ValueTracking] Make getStringLenth aware of strdup"

This reverts commit e810d558093cff40caaa1aff24d289c76c59916d.

The commit was not taken into account the fact that strduped string could be
modified. Checking if such modification happens would make the function very
costly, without a test case in mind it's not worth the effort.




More information about the All-commits mailing list