Include postdominators in CFGResult

This commit is contained in:
Vidar Holen
2022-07-25 10:00:50 -07:00
parent 982681fc05
commit f1148b8b41
2 changed files with 84 additions and 7 deletions

View File

@@ -99,6 +99,7 @@ data CFGAnalysis = CFGAnalysis {
graph :: CFGraph,
tokenToRange :: M.Map Id (Node, Node),
tokenToNodes :: M.Map Id (S.Set Node),
postDominators :: M.Map Node (S.Set Node),
nodeToData :: M.Map Node (ProgramState, ProgramState)
} deriving (Show, Generic, NFData)
@@ -1304,7 +1305,8 @@ analyzeControlFlow params t =
graph = cfGraph cfg,
tokenToRange = cfIdToRange cfg,
tokenToNodes = cfIdToNodes cfg,
nodeToData = nodeToData
nodeToData = nodeToData,
postDominators = cfPostDominators cfg
}
@@ -1355,5 +1357,6 @@ analyzeStragglers ctx state stragglers = do
transferFunctionValue ctx def
return []
runTests = $quickCheckAll