On 11/4/12 5:03 AM, Konstantin Tokarev wrote:
Why RemovePointer pass ignores ParmVarDecl's?
It is really a simplification. RemovePointer pass is quite naive, and
doesn't rely on any sophisticated pointers analysis.
When I implemented this pass, I had a couple of concerns:
- at some level param-to-global and param-to-local would indirectly
make up the deficiency of lacking this feature;
- I wanted to hack up the prototype quickly;
- reduce the chance of generating incompilable code as much as possible;
So it's a tradeoff.
To have a better RemovePointer pass, we need to do much better pointer
analysis, which I would like to add at some point.
- Yang