[all-commits] [llvm/llvm-project] cffd26: Demote getMallocType to implementation routine in ...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jan 6 18:16:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cffd2683163deeb50317f5c9bdd30747a87279a5
      https://github.com/llvm/llvm-project/commit/cffd2683163deeb50317f5c9bdd30747a87279a5
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp

  Log Message:
  -----------
  Demote getMallocType to implementation routine in MemoryBuiltins [NFC]


  Commit: 4b0fc924a93c9138868df7215267a09ee63b35eb
      https://github.com/llvm/llvm-project/commit/4b0fc924a93c9138868df7215267a09ee63b35eb
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp

  Log Message:
  -----------
  Delete unused extractCallocCall routine [NFC]


  Commit: 67a3331e4f6d339a09f07e823b4be8404a59d761
      https://github.com/llvm/llvm-project/commit/67a3331e4f6d339a09f07e823b4be8404a59d761
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp

  Log Message:
  -----------
  Inline extractMallocCall to sole use and delete [NFC]


  Commit: 7052670e962ec50587b95af71bfd8fe4877f9732
      https://github.com/llvm/llvm-project/commit/7052670e962ec50587b95af71bfd8fe4877f9732
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp

  Log Message:
  -----------
  Move getMallocAllocatedType and getMallocArraySize to GlobalOpt [NFC]

These are implementation details of the global-opt transform and not easily reuseable, so remove them from the analysis header.


  Commit: 5d1cfd43483bc82ddd735942a1a1f5be223f948b
      https://github.com/llvm/llvm-project/commit/5d1cfd43483bc82ddd735942a1a1f5be223f948b
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

  Log Message:
  -----------
  Remove unused LookThroughBitCast param in isXAllocLike functions [NFC]

This parameter took the non-default value exactly twice, and neither had semantic effect.


  Commit: 9ce30fe86f58df45b2c5daa601802593601c471d
      https://github.com/llvm/llvm-project/commit/9ce30fe86f58df45b2c5daa601802593601c471d
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/Scalar/GVN.cpp
    M llvm/lib/Transforms/Scalar/NewGVN.cpp

  Log Message:
  -----------
  Extract utility function for checking initial value of allocation [NFC]

This is a reoccuring pattern, we can consolidate three copies into one.  The main motivation is to reduce usages of isMallocLike.


Compare: https://github.com/llvm/llvm-project/compare/07c009ed5506...9ce30fe86f58


More information about the All-commits mailing list