This is an archive of the discontinued LLVM Phabricator instance.

[LSV] Use OrderedBasicBlock instead of rolling it ourselves. [NFC]
ClosedPublic

Authored by jlebar on Aug 12 2016, 3:53 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 67930.Aug 12 2016, 3:53 PM
jlebar retitled this revision from to [LSV] Use OrderedBasicBlock instead of rolling it ourselves. [NFC].
jlebar updated this object.
jlebar added a reviewer: asbirlea.
jlebar added subscribers: llvm-commits, arsenm.
asbirlea accepted this revision.Aug 12 2016, 4:39 PM
asbirlea edited edge metadata.

LGTM. (Nice..)

This revision is now accepted and ready to land.Aug 12 2016, 4:39 PM
This revision was automatically updated to reflect the committed changes.