summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-31 16:54:11 +0100
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-31 16:54:11 +0100
commitfd2b5b589896913a7ae4b9887e7775ad68b6b064 (patch)
tree16dd83d6c4f883286a73a1364da2d7a725b4ae3c
parent1b7d5a9dfd269d47f0ebd7b918c0cab70662aa46 (diff)
set default loop unroll factor to 4
Note that loop unrolling is generally not enabled by default! 2. Include missing unroll options in parameter description structure
-rw-r--r--src/firm/firm_opt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/firm/firm_opt.c b/src/firm/firm_opt.c
index 36a5a6d..d2c2960 100644
--- a/src/firm/firm_opt.c
+++ b/src/firm/firm_opt.c
@@ -75,7 +75,7 @@ static struct a_firm_opt firm_opt = {
.clone_threshold = DEFAULT_CLONE_THRESHOLD,
.inline_maxsize = 750,
.inline_threshold = 0,
- .unroll_factor = 1,
+ .unroll_factor = 4,
.unroll_maxsize = 64,
};
@@ -118,6 +118,8 @@ static const struct params {
{ X("strict-aliasing"), &firm_opt.strict_alias, 1, "strict alias rules" },
{ X("no-strict-aliasing"), &firm_opt.strict_alias, 0, "strict alias rules" },
{ X("clone-threshold=<value>"),NULL, 0, "set clone threshold to <value>" },
+ { X("unroll-max-size=<size>"), NULL, 0, "set maximum size of loops for loop unrolling" },
+ { X("unroll-factor=<size>"), NULL, 0, "set unroll factor for loop unrolling" },
/* other firm regarding options */
{ X("verify-off"), &firm_opt.verify, 0, "disable node verification" },