Commit 4a659477 by Jim Stichnoth

Subzero: Fix a -verbose=regalloc bug.

This is the same as the fix that https://codereview.chromium.org/1531623007 (b19d39cc) made to the same file. Otherwise the broken x86-32 implementation of getGprForType() gives an assertion failure. BUG= none R=eholk@chromium.org Review URL: https://codereview.chromium.org/1643383002 .
parent 81747d62
......@@ -820,7 +820,7 @@ void LinearScan::assignFinalRegisters(
} else {
Str << (AssignedRegNum == Item->getRegNum() ? "Reassigning "
: "Assigning ")
<< Target->getRegName(AssignedRegNum, IceType_i32) << "(r"
<< Target->getRegName(AssignedRegNum, Item->getType()) << "(r"
<< AssignedRegNum << ") to ";
Item->dump(Func);
Str << "\n";
......
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