diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-13 15:43:16 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-13 15:43:23 -0500 |
commit | b8c76457464714908bef43fd992a56ca94091eba (patch) | |
tree | cd21e2a5865886d4782fdc059664d0f8dc149811 | |
parent | 8c0574eaa16248260fbd615e7a6ef9fd87119189 (diff) | |
download | roux-b8c76457464714908bef43fd992a56ca94091eba.tar.gz |
improve the debug output of copy()
-rw-r--r-- | lisc/copy.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisc/copy.c b/lisc/copy.c index c04f36a..0e62ed7 100644 --- 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); } |