comparison python/ppci/codegen/registerallocator.py @ 334:6f4753202b9a

Added more recipes
author Windel Bouwman
date Thu, 13 Feb 2014 22:02:08 +0100
parents e9fe6988497c
children b00219172a42
comparison
equal deleted inserted replaced
333:dcae6574c974 334:6f4753202b9a
39 self.worklistMoves = set() 39 self.worklistMoves = set()
40 40
41 def Build(self): 41 def Build(self):
42 """ 1. Construct interference graph from instruction list """ 42 """ 1. Construct interference graph from instruction list """
43 self.f.cfg = FlowGraph(self.f.instructions) 43 self.f.cfg = FlowGraph(self.f.instructions)
44 self.logger.info('Constructed flowgraph', extra={'ra_cfg':self.f.cfg}) 44 self.logger.debug('Constructed flowgraph', extra={'ra_cfg':self.f.cfg})
45 self.f.ig = InterferenceGraph(self.f.cfg) 45 self.f.ig = InterferenceGraph(self.f.cfg)
46 self.logger.info('Constructed interferencegraph', extra={'ra_ig':self.f.ig}) 46 self.logger.debug('Constructed interferencegraph', extra={'ra_ig':self.f.ig})
47 47
48 self.Node = self.f.ig.getNode 48 self.Node = self.f.ig.getNode
49 49
50 # Divide nodes into pre-colored and initial: 50 # Divide nodes into pre-colored and initial:
51 pre_tmp = list(self.f.tempMap.keys()) 51 pre_tmp = list(self.f.tempMap.keys())