Zell
unread,Jan 10, 2012, 12:35:32 PM1/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chord-discuss
Given a register, say, from the domain of V.map, is there a simple way
to
decide whether it is related to a real local variable or not?
In my case, I am trying to add some kind of "strong update" on top of
cipa-0cfa-dlog. For this purpose, I will need to be able to
distinguish those "h" which are singletons. It's clear that if there
exists two variables x,y pointing to the "h", it is considered not as
a singleton.
But, with the analyse results of jchord, say, VH, it has many
temporary variables pointing to such underlined "h". This makes none
of those "h" can be recognized as singletons, which disables further
optimizations such as strong update.
With this motivation, I really would like to remove those relations in
VH whose "V" part does not correspond to the real local variables.
What's your ideas?
I thought RegisterFactory.Register.isTemp() can be used for this
purpose, because it did distinguish registers prefixed by " R" and
register prefixed by "T". However, I found out, unfortunately, all
those registers prefixed by "R" does not correspond to real local
variables!
So would you like to tell me how to decide whether a register is a
local variable?