[PATCH] D57231: [LoopSimplifyCFG] Pay respect to LCSSA when removing dead blocks

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 25 04:46:12 PST 2019


mkazantsev created this revision.
mkazantsev added reviewers: rupprecht, anna, fedor.sergeev.

Utility function that we use for blocks deletion always unconditionally removes
one-input Phis. In LoopSimplifyCFG, it can lead to breach of LCSSA form.
This patch alters this function to keep them if needed.


https://reviews.llvm.org/D57231

Files:
  include/llvm/Transforms/Utils/BasicBlockUtils.h
  lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  lib/Transforms/Utils/BasicBlockUtils.cpp
  test/Transforms/LoopSimplifyCFG/lcssa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57231.183518.patch
Type: text/x-patch
Size: 5277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190125/be889951/attachment.bin>


More information about the llvm-commits mailing list