[all-commits] [llvm/llvm-project] d544a8: [LoopFlatten] Update MemorySSA state

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Wed Jan 19 02:58:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d544a89a3764d47c30d4456554209c3f85cc8f40
      https://github.com/llvm/llvm-project/commit/d544a89a3764d47c30d4456554209c3f85cc8f40
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopFlatten.cpp

  Log Message:
  -----------
  [LoopFlatten] Update MemorySSA state

I would like to move LoopFlatten from LoopPass Manager LPM2 to LPM1 (D116612),
but that is a LPM that is using MemorySSA and so LoopFlatten needs to preserve
MemorySSA and this adds that. More specifically, LoopFlatten restructures the
CFG and with this change the MSSA state is updated accordingly, where we also
update the DomTree. LoopFlatten doesn't rewrite/optimise/delete load or store
instructions, so I have not added any MSSA updates for that.

Differential Revision: https://reviews.llvm.org/D116660




More information about the All-commits mailing list