[all-commits] [llvm/llvm-project] 04b717: [TLI] Check that malloc argument has type size_t

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Mar 14 09:22:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04b717c42355467d113d47f1a9a19ff494aa8fc4
      https://github.com/llvm/llvm-project/commit/04b717c42355467d113d47f1a9a19ff494aa8fc4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/test/Analysis/GlobalsModRef/indirect-global.ll
    M llvm/test/Transforms/DeadStoreElimination/simple.ll
    A llvm/test/Transforms/DeadStoreElimination/wrong-malloc-size.ll
    M llvm/test/Transforms/InstCombine/malloc-free.ll
    M llvm/test/Transforms/InstCombine/objsize-64.ll
    M llvm/test/Transforms/MetaRenamer/metarenamer.ll

  Log Message:
  -----------
  [TLI] Check that malloc argument has type size_t

DSE assumes that this is the case when forming a calloc from a
malloc + memset pair.

For tests, either update the malloc signature or change the
data layout.




More information about the All-commits mailing list