[XLA] Correct WhileLoopInvariantCodeMotion log messages.
PiperOrigin-RevId: 310425877 Change-Id: I582ca2b53515d932c7bde72d4ec91986b1482c43
This commit is contained in:
parent
2acaff3d89
commit
8fef4ea574
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user