[all-commits] [llvm/llvm-project] 6b7eae: [Attributor][FIX] HasBeenWrittenTo logic should on...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Jul 22 21:58:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b7eae11f162f33174ea9f5f446dcc3c1908457c
      https://github.com/llvm/llvm-project/commit/6b7eae11f162f33174ea9f5f446dcc3c1908457c
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll

  Log Message:
  -----------
  [Attributor][FIX] HasBeenWrittenTo logic should only be used for reads

If we look at a write, we should not enact the "has been written to"
logic introduced to avoid spurious write -> read dependences. Doing so
lead to elimination of stores we needed, which is obviously bad.




More information about the All-commits mailing list