Message ID | 20170322133519.94254-1-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
diff --git a/linearize.c b/linearize.c index 5199b6b02..8d4305aea 100644 --- a/linearize.c +++ b/linearize.c @@ -396,6 +396,8 @@ const char *show_instruction(struct instruction *insn) const char *s = " <-"; buf += sprintf(buf, "%s", show_pseudo(insn->target)); FOR_EACH_PTR(insn->phi_list, phi) { + if (phi == VOID && !verbose) + continue; buf += sprintf(buf, "%s %s", s, show_pseudo(phi)); s = ","; } END_FOR_EACH_PTR(phi);
As the normal result of branch simplification OP_PHI can have some VOID in their phi_list, sometimes lots of them. These list can't be simplified, comacted or so because the address of the pseudos is used for the pseudo tracking. But it's annoying that these VOID are displayed by show_instruction(), it make things sometimes hard to read. Chnage this by ommiting to display them (when not verbose). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- linearize.c | 2 ++ 1 file changed, 2 insertions(+)