annotate python/optimize.py @ 267:e7c8f7eb3f59

Added tag Working chain 1 for changeset 649884d9dc61
author Windel Bouwman
date Mon, 12 Aug 2013 20:14:47 +0200
parents 7416c923a02a
children 5ec7580976d9
rev   line source
253
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
1 from mem2reg import Mem2RegPromotor
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
2 from transform import CommonSubexpressionElimination, CleanPass
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
3 from transform import DeadCodeDeleter, ConstantFolder
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
4
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
5 def optimize(ir):
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
6 cf = ConstantFolder()
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
7 dcd = DeadCodeDeleter()
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
8 m2r = Mem2RegPromotor()
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
9 clr = CleanPass()
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
10 cse = CommonSubexpressionElimination()
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
11 cf.run(ir)
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
12 dcd.run(ir)
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
13 clr.run(ir)
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
14 m2r.run(ir)
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
15 cse.run(ir)
255
7416c923a02a Added more logging
Windel Bouwman
parents: 253
diff changeset
16 cf.run(ir)
7416c923a02a Added more logging
Windel Bouwman
parents: 253
diff changeset
17 dcd.run(ir)
253
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
18
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
19
74c6a20302d5 Added better logging
Windel Bouwman
parents:
diff changeset
20