[PATCH] D68659: [MemorySSA] Make the use of moveAllAfterMergeBlocks consistent.

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 12:22:04 PDT 2019


asbirlea created this revision.
asbirlea added a reviewer: george.burgess.iv.
Herald added subscribers: sanjoy.google, Prazek.
Herald added a project: LLVM.

The rule for the moveAllAfterMergeBlocks API si for all instructions
from `From` to have been moved to `To`, while keeping the CFG edges (and
block terminators) unchanged.
Update all the callsites for moveAllAfterMergeBlocks to follow this.

Pending follow-up: since the same behavior is needed everytime, merge
all callsites into one. The common denominator may be the call to
`MergeBlockIntoPredecessor`.

Resolves PR43569.


Repository:
  rL LLVM

https://reviews.llvm.org/D68659

Files:
  lib/Analysis/MemorySSAUpdater.cpp
  lib/Transforms/Scalar/LoopUnswitch.cpp
  lib/Transforms/Utils/BasicBlockUtils.cpp
  lib/Transforms/Utils/LoopRotationUtils.cpp
  test/Analysis/MemorySSA/pr43569.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68659.223920.patch
Type: text/x-patch
Size: 9275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191008/15a8359d/attachment.bin>


More information about the llvm-commits mailing list