Skip to content

Commit

Permalink
[XLA:CPU] Emit nested computation name rather than caller's
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 713993703
  • Loading branch information
WillFroom authored and Google-ML-Automation committed Jan 10, 2025
1 parent 62e57c4 commit 1fe04d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xla/backends/cpu/codegen/elemental_kernel_emitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ ElementalKernelEmitter::ThreadLocalCallbackFactory(llvm::IRBuilderBase& builder,
bool is_reducer = instr_->opcode() == HloOpcode::kReduce ||
instr_->opcode() == HloOpcode::kReduceWindow;
TF_RETURN_IF_ERROR(ir_emitter->EmitNestedComputation(
*nested_computation, llvm_ir::IrName(instr_), is_reducer));
*nested_computation, llvm_ir::IrName(nested_computation->name()),
is_reducer));
}

return [ir_emitter = std::move(ir_emitter), &builder](
Expand Down

0 comments on commit 1fe04d9

Please sign in to comment.