[all-commits] [llvm/llvm-project] f8c9ce: [SimplifyLibCalls] Add __strlen_chk.

George Burgess IV via All-commits all-commits at lists.llvm.org
Sat Feb 8 12:02:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f8c9ceb1ce9c71574d413a6391812d46d9f9edb3
      https://github.com/llvm/llvm-project/commit/f8c9ceb1ce9c71574d413a6391812d46d9f9edb3
  Author: George Burgess IV <george.burgess.iv at gmail.com>
  Date:   2020-02-08 (Sat, 08 Feb 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetLibraryInfo.def
    M llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    A llvm/test/Transforms/InstCombine/strlen_chk.ll
    M llvm/unittests/Analysis/TargetLibraryInfoTest.cpp

  Log Message:
  -----------
  [SimplifyLibCalls] Add __strlen_chk.

Bionic has had `__strlen_chk` for a while. Optimizing that into a
constant is quite profitable, when possible.

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




More information about the All-commits mailing list