OSDN Git Service

[SimplifyCFGPass] iterativelySimplifyCFG(): support lazy DomTreeUpdater
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 11 Jan 2021 21:36:18 +0000 (00:36 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 11 Jan 2021 23:09:47 +0000 (02:09 +0300)
commitec8a6c11db4102ec249ce90084b3f615c5de15e5
treea222bf0edb284cdd01221861cd1af551f744e321
parent81afeacd379f160495718438d6dd5e9b848a169d
[SimplifyCFGPass] iterativelySimplifyCFG(): support lazy DomTreeUpdater

This boils down to how we deal with early-increment iterator
over function's basic blocks: not only we need to early-increment,
after that we also need to skip all the blocks
that are scheduled for removal, as per DomTreeUpdater.
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp