Commit 6b44fb07 by Mohit Bhakkad Committed by Jim Stichnoth

Subzero[MIPS32]: Make liveness validation errors easier to interpret

This patch repeats the same changes for MIPS32, which are done in https://codereview.chromium.org/2080633004 for ARM and X86 archs. R=stichnot@chromium.org Review URL: https://codereview.chromium.org/2086273002 . Patch from Mohit Bhakkad <mohit.bhakkad@imgtec.com>.
parent 9b4c3c3a
......@@ -272,12 +272,12 @@ void TargetMIPS32::translateO2() {
Func->liveness(Liveness_Intervals);
if (Func->hasError())
return;
// Validate the live range computations. The expensive validation call is
// deliberately only made when assertions are enabled.
assert(Func->validateLiveness());
// The post-codegen dump is done here, after liveness analysis and associated
// cleanup, to make the dump cleaner and more useful.
Func->dump("After initial MIPS32 codegen");
// Validate the live range computations. The expensive validation call is
// deliberately only made when assertions are enabled.
assert(Func->validateLiveness());
Func->getVMetadata()->init(VMK_All);
regAlloc(RAK_Global);
if (Func->hasError())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment