[all-commits] [llvm/llvm-project] 4b1c80: [NFC][ArgumentPromotion] Clear FAM cached results ...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu Mar 18 09:18:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b1c8070bb8c3d59f746c4daa16f27547cd71b86
      https://github.com/llvm/llvm-project/commit/4b1c8070bb8c3d59f746c4daa16f27547cd71b86
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/ArgumentPromotion.cpp

  Log Message:
  -----------
  [NFC][ArgumentPromotion] Clear FAM cached results of erased function.

Not doing it here can lead to subtle bugs - the analysis results are
associated by the Function object's address. Nothing stops the memory
allocator from allocating new functions at the same address.




More information about the All-commits mailing list