[PATCH] D23472: [LSV] Use OrderedBasicBlock instead of rolling it ourselves. [NFC]

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 15:53:35 PDT 2016


jlebar created this revision.
jlebar added a reviewer: asbirlea.
jlebar added subscribers: llvm-commits, arsenm.
Herald added a subscriber: mzolotukhin.

In getVectorizablePrefix, this is less efficient (because we have to
iterate over the BB twice), but boy is it simpler.  Given how much
trouble we've had here, I think the simplicity gain is worthwhile.

In reorder(), this is actually more efficient, as
DominatorTree::dominates iterates over the BB from the beginning when
the two instructions are in the same BB.

https://reviews.llvm.org/D23472

Files:
  llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23472.67930.patch
Type: text/x-patch
Size: 4509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160812/78bfc833/attachment.bin>


More information about the llvm-commits mailing list