Skip to content

Commit

Permalink
Change the name of the ir dumps to have the suffix before the -ir-(wi…
Browse files Browse the repository at this point in the history
…th/no)-opt

PiperOrigin-RevId: 712831703
  • Loading branch information
WillFroom authored and Google-ML-Automation committed Jan 7, 2025
1 parent e744bb4 commit bb5af3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xla/service/llvm_ir/llvm_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ void DumpIrIfEnabled(const HloModule& hlo_module,
// XlaJitCompiledCpuFunction::Compile. Avoid overwriting IR files previously
// dumped from the same process in such cases.
std::string suffix =
absl::StrCat("ir-", optimized ? "with" : "no", "-opt",
filename_suffix.empty() ? "" : ".", filename_suffix);
absl::StrCat(filename_suffix, filename_suffix.empty() ? "" : ".", "ir-",
optimized ? "with" : "no", "-opt");
DumpToFileInDirOrStdout(hlo_module, "", absl::StrCat(suffix, ".ll"),
DumpToString(&llvm_module));
}
Expand Down

0 comments on commit bb5af3e

Please sign in to comment.