diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-03-22 14:25:24 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-16 20:36:28 +0100 |
| commit | 37a824078ff8a581cbbedb1ba8b4beb10d8a82e6 (patch) | |
| tree | ff473e55e7dcbc8d521b630034f89063bce317c9 | |
| parent | d1748be71e0c4217b928262f587c6893ad79e44d (diff) | |
| download | sparse-dev-37a824078ff8a581cbbedb1ba8b4beb10d8a82e6.tar.gz | |
show OP_PHI without VOID
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>
| -rw-r--r-- | linearize.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linearize.c b/linearize.c index 9040d5d9..3fb4c15c 100644 --- a/linearize.c +++ b/linearize.c @@ -401,6 +401,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); |
