On 9/17/12 5:39 AM, Konstantin Tokarev wrote:
Hi all,
There are passes "remove-unused-function", "remove-unused-var", and
"remove-unused-field"
in creduce, but I haven't found anything like "remove-unused-class" or
"remove-unused-template".
I think such passes could be useful on earlier stages of reduction then existing
"remove-unused-*"
passes, because they can eliminate potentially larger chuncks of code,
especially when template
libraries like STL are used in translation unit.
Hi Konstantin,
Yes, you are right. I have these kinds of transformations in my mind,
but didn't get a chance to hack them up. The existing C++ specific
passes are mainly late-stage ones. They are sort of refinement passes
and open up more reduction opportunities for other passes. I will be
quite busy in these two months. After that I will find some time to
improve the quality of clang_delta for C++ code.
Thanks for the suggestion!
- Yang