[XLA] Correct WhileLoopInvariantCodeMotion log messages.

PiperOrigin-RevId: 310425877
Change-Id: I582ca2b53515d932c7bde72d4ec91986b1482c43
This commit is contained in:
A. Unique TensorFlower 2020-05-07 13:28:41 -07:00 committed by TensorFlower Gardener
parent 2acaff3d89
commit 8fef4ea574

View File

@ -300,7 +300,7 @@ WhileLoopInvariantCodeMotion::TryHoistingInvariantInstructionsFromWhileBody(
}
StatusOr<bool> WhileLoopInvariantCodeMotion::Run(HloModule* module) {
VLOG(2) << "HLO module before WhileLoopConstantSinking:";
VLOG(2) << "HLO module before WhileLoopInvariantCodeMotion:";
XLA_VLOG_LINES(2, module->ToString());
bool changed = false;
@ -332,10 +332,10 @@ StatusOr<bool> WhileLoopInvariantCodeMotion::Run(HloModule* module) {
}
if (changed) {
VLOG(2) << "HLO module after WhileLoopConstantSinking:";
VLOG(2) << "HLO module after WhileLoopInvariantCodeMotion:";
XLA_VLOG_LINES(2, module->ToString());
} else {
VLOG(2) << "HLO module unchanged after WhileLoopConstantSinking";
VLOG(2) << "HLO module unchanged after WhileLoopInvariantCodeMotion";
}
return changed;