aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_pass_pipeline.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-28 10:36:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-28 10:43:43 -0700
commit4f4e1b48862c30a21dedffb7a1929a2b2600ec9f (patch)
tree9b10bb2e00dde7890b4dcd1ddc6fb18698bf00d2 /tensorflow/compiler/xla/service/hlo_pass_pipeline.cc
parentd8f64b90e6f0bfec5135bdf99e42b8fdaf53788d (diff)
Removed redundant std::string -> string conversions.
PiperOrigin-RevId: 210565027
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_pass_pipeline.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_pass_pipeline.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_pass_pipeline.cc b/tensorflow/compiler/xla/service/hlo_pass_pipeline.cc
index de7ad6d209..6e4ed0de62 100644
--- a/tensorflow/compiler/xla/service/hlo_pass_pipeline.cc
+++ b/tensorflow/compiler/xla/service/hlo_pass_pipeline.cc
@@ -91,7 +91,7 @@ StatusOr<bool> HloPassPipeline::Run(HloModule* module) {
return Status::OK();
};
- string prefix = std::string(name()) + ": pipeline start";
+ string prefix = StrCat(name(), ": pipeline start");
bool changed = false;
string message;
TF_RETURN_IF_ERROR(
@@ -99,12 +99,12 @@ StatusOr<bool> HloPassPipeline::Run(HloModule* module) {
const string xla_dump_per_pass_hlo_proto_to =
module->config().debug_options().xla_dump_per_pass_hlo_proto_to();
if (!xla_dump_per_pass_hlo_proto_to.empty()) {
- DumpModuleProto(*module, xla_dump_per_pass_hlo_proto_to,
- std::string(name()), "pipeline_start");
+ DumpModuleProto(*module, xla_dump_per_pass_hlo_proto_to, string(name()),
+ "pipeline_start");
}
for (auto& pass : passes_) {
- if (disabled_passes.count(std::string(pass->name())) > 0) {
+ if (disabled_passes.count(string(pass->name())) > 0) {
VLOG(1) << " Skipping HLO pass " << pass->name()
<< ", disabled by --xla_disable_hlo_passes";
continue;
@@ -121,8 +121,8 @@ StatusOr<bool> HloPassPipeline::Run(HloModule* module) {
TF_RETURN_IF_ERROR(
run_invariant_checkers(StrCat("after running pass: ", pass->name())));
if (!xla_dump_per_pass_hlo_proto_to.empty()) {
- DumpModuleProto(*module, xla_dump_per_pass_hlo_proto_to,
- std::string(name()), std::string(pass->name()));
+ DumpModuleProto(*module, xla_dump_per_pass_hlo_proto_to, string(name()),
+ string(pass->name()));
}
changed |= changed_this_pass;