[all-commits] [llvm/llvm-project] 1f6950: [MemoryBuiltins] Add getReallocatedOperand() funct...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 21 05:55:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f69503107f2103106b8f7561d4fe7a7efa51b9f
      https://github.com/llvm/llvm-project/commit/1f69503107f2103106b8f7561d4fe7a7efa51b9f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-21 (Thu, 21 Jul 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:
  -----------
  [MemoryBuiltins] Add getReallocatedOperand() function (NFC)

Replace the value-accepting isReallocLikeFn() overload with a
getReallocatedOperand() function, which returns which operand is
the one being reallocated. Currently, this is always the first one,
but once allockind(realloc) is respected, the reallocated operand
will be determined by the allocptr parameter attribute.




More information about the All-commits mailing list