Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is varKills in MemSSA used for? #1504

Open
canliture opened this issue Jul 23, 2024 · 1 comment
Open

What is varKills in MemSSA used for? #1504

canliture opened this issue Jul 23, 2024 · 1 comment

Comments

@canliture
Copy link
Contributor

canliture commented Jul 23, 2024

Could someone give me an example to show the importance or useness of varKills? Thanks!

SVF/svf/lib/MSSA/MemSSA.cpp

Lines 126 to 137 in 6620a5f

// 2. find global names (region name before renaming) of each memory region,
// collect used mrs in usedRegs, and collect its def basic block in reg2BBMap
// in the form of mu(r) and r = chi (r)
// a) mu(r):
// if(r \not\in varKills) global = global \cup r
// b) r = chi(r):
// if(r \not\in varKills) global = global \cup r
// varKills = varKills \cup r
// block(r) = block(r) \cup bb_{chi}
/// get all reachable basic blocks from function entry
/// ignore dead basic blocks

@yuleisui
Copy link
Collaborator

varKills are vars are not live anymore to be put in SSA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants