Hi Konstantin,
Sorry for the late response.
On 10/30/12 2:42 PM, Konstantin Tokarev wrote:
29.10.2012, 12:23, "Konstantin Tokarev"<[email protected]>:
29.10.2012, 01:24, "John Regehr"<[email protected]>:
A pass for eliminating references sounds extremely useful for reducing
general C++ code!
Does convertion of references to pointers sound useful too?
I am not sure since I don't reduce too much C++ code. Did you see cases
where this transformation is useful? If so, it's definitely useful.
Roughly speaking, I think our guideline is that if a transformation
benefits code reduction, then it's useful. We obtain this knowledge by
our own manual reduction experience and also through examining manual
reduced codes from other experts. So if you've seen this transformation
would be helpful, then it's definitely worthy of implementing it.
It's also possible to convert built-in types to values and other types to
pointers.
Any thoughts?
Same to the above :) But my untested feeling is that it would be useful
for reducing C++ code.
- Yang