mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 11:11:37 +00:00
Print the type of temporary operands.
It turns out the recent dead-block code "broke" vector component access from objects. The breakage is really highlighting a problem with temporary operands and aliasing. The problem was hiding behind a basic-block split that the recent dead-block work mended and thus exposed the bug.
This commit is contained in:
parent
7642c666db
commit
580fba2cd1
1 changed files with 5 additions and 2 deletions
|
@ -124,10 +124,13 @@ operand_string (operand_t *op)
|
|||
return op->o.label->name;
|
||||
case op_temp:
|
||||
if (op->o.tempop.alias)
|
||||
return va ("<tmp %p:%d:%p:%d>", op, op->o.tempop.users,
|
||||
return va ("<tmp %s %p:%d:%p:%d>",
|
||||
pr_type_name[op->o.tempop.type->type],
|
||||
op, op->o.tempop.users,
|
||||
op->o.tempop.alias,
|
||||
op->o.tempop.alias->o.tempop.users);
|
||||
return va ("<tmp %p:%d>", op, op->o.tempop.users);
|
||||
return va ("<tmp %s %p:%d>", pr_type_name[op->o.tempop.type->type],
|
||||
op, op->o.tempop.users);
|
||||
case op_alias:
|
||||
{
|
||||
const char *alias = operand_string (op->o.alias);
|
||||
|
|
Loading…
Reference in a new issue