[PATCH] D59789: [DSE] Preserve basic block ordering using OrderedBasicBlock.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 14:27:26 PDT 2019


fhahn updated this revision to Diff 192207.
fhahn added a comment.

Thanks Eli. In the case LastInstFound == BB->begin(), we have to renumber all
instructions after removing LastInstFound, so there is no need to manually number
the next instruction with 0.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59789/new/

https://reviews.llvm.org/D59789

Files:
  llvm/include/llvm/Analysis/OrderedBasicBlock.h
  llvm/lib/Analysis/OrderedBasicBlock.cpp
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59789.192207.patch
Type: text/x-patch
Size: 11337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190325/32b141d2/attachment.bin>


More information about the llvm-commits mailing list