Skip to content

Commit

Permalink
Disabled loop coalescing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kumasento committed Oct 13, 2021
1 parent aa5f929 commit 60ea6e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyphism/polybench/pb_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class PbFlowOptions:
examples: List[str] = POLYBENCH_EXAMPLES
split: str = "NO_SPLIT" # other options: "SPLIT", "HEURISTIC"
loop_transforms: bool = False
coalescing: bool = False # enable loop coalescing
constant_args: bool = True
improve_pipelining: bool = False
max_span: int = -1
Expand Down Expand Up @@ -1236,8 +1237,8 @@ def loop_transforms(self):
src_file,
f'-loop-transforms="max-span={self.options.max_span}"',
"-loop-redis-and-merge",
"-fold-if",
"-demote-bound-to-if",
"-fold-if" if self.options.coalescing else "",
"-demote-bound-to-if" if self.options.coalescing else "",
"-fold-if",
"-debug-only=loop-transforms",
]
Expand Down Expand Up @@ -1323,8 +1324,8 @@ def lower_scf(self):
self.get_program_abspath("phism-opt"),
src_file,
"-lower-affine",
"-loop-bound-hoisting",
"-loop-coalescing",
"-loop-bound-hoisting" if self.options.coalescing else "",
"-loop-coalescing" if self.options.coalescing else "",
],
stdout=open(self.cur_file, "w"),
env=self.env,
Expand Down

0 comments on commit 60ea6e0

Please sign in to comment.