qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit b8c76457464714908bef43fd992a56ca94091eba
parent 8c0574eaa16248260fbd615e7a6ef9fd87119189
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Fri, 13 Nov 2015 15:43:16 -0500

improve the debug output of copy()

Diffstat:
Mlisc/copy.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisc/copy.c b/lisc/copy.c @@ -144,12 +144,17 @@ copy(Fn *fn) } if (debug['C']) { fprintf(stderr, "\n> Copy information:"); - for (t=Tmp0; t<fn->ntmp; t++) - if (!req(cp[t], TMP(t))) { + for (t=Tmp0; t<fn->ntmp; t++) { + if (req(cp[t], R)) { + fprintf(stderr, "\n%10s not seen!", + fn->tmp[t].name); + } + else if (!req(cp[t], TMP(t))) { fprintf(stderr, "\n%10s copy of ", fn->tmp[t].name); printref(cp[t], fn, stderr); } + } fprintf(stderr, "\n\n> After copy elimination:\n"); printfn(fn, stderr); }