diff options
author | Benjamin Kramer <kramerb@google.com> | 2018-06-15 11:10:03 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-15 11:13:08 -0700 |
commit | b62d76d932f93ff324d2598cdeac792fa61135a4 (patch) | |
tree | f6c9dda35d6ae6263cb16984278fbebf93b46574 /tensorflow/compiler/xla/service/hlo_reachability.cc | |
parent | 1ca4b6f797a168036e2708faf45753b333f467dc (diff) |
[XLA] Switch PostOrder accessors to use std::vector instead of std::list.
std::list is just hilariously inefficient and the postorder list creation has
been rewritten not to not depend on splicing anymore so there's no need for the
list. While there remove the old unused postorder list creation code.
PiperOrigin-RevId: 200743677
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_reachability.cc')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_reachability.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_reachability.cc b/tensorflow/compiler/xla/service/hlo_reachability.cc index 4738e46f8a..01b088a957 100644 --- a/tensorflow/compiler/xla/service/hlo_reachability.cc +++ b/tensorflow/compiler/xla/service/hlo_reachability.cc @@ -18,7 +18,7 @@ limitations under the License. namespace xla { HloReachabilityMap::HloReachabilityMap( - const std::list<HloInstruction*>& instructions) + tensorflow::gtl::ArraySlice<const HloInstruction*> instructions) : size_(instructions.size()) { bit_vectors_.reserve(size_); for (const HloInstruction* hlo : instructions) { |