[llvm] r185040 - SLP: Dont erase instructions during vectorization because it prevents the outerloops from iterating over the instructions.

Chandler Carruth chandlerc at google.com
Wed Jun 26 16:55:01 PDT 2013


On Wed, Jun 26, 2013 at 4:50 PM, Nadav Rotem <nrotem at apple.com> wrote:

> We have dead code.   But DCE runs right after the SLP.


It may not be worth it, but I found in SROA it was much more efficient to
keep a local vector of dead instructions that I manually went and deleted
at the end of the pass. That way you don't have iterator invalidation
concerns, but you also don't re-do the work to prove them dead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130626/29a38a85/attachment.html>


More information about the llvm-commits mailing list