summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-06-06 14:42:25 +0200
committerMatthias Braun <matze@braunis.de>2013-06-06 14:42:25 +0200
commitcedc305c4d5c0f97192cc04ba73723e9df76bb73 (patch)
tree5f2f27679ae43b3b633e13a75b0fdaaa81320138 /ir/stat
parentd4c5eceb40f378a51ab7661a4c7c8f7dcb96a1ba (diff)
get rid of an explicit Rotl node
The backends which support rotl now match for or(shl,shr) patterns.
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/firmstat_t.h1
-rw-r--r--ir/stat/stat_dmp.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/ir/stat/firmstat_t.h b/ir/stat/firmstat_t.h
index 642a19d..ac43a2a 100644
--- a/ir/stat/firmstat_t.h
+++ b/ir/stat/firmstat_t.h
@@ -85,7 +85,6 @@ enum firmstat_optimizations_t {
FS_OPT_EOR_TO_NOT_BOOL, /**< bool ^ 1 = !bool */
FS_OPT_EOR_TO_NOT, /**< x ^ 0b1..1 = ~x, (a ^ b) & b -> ~a & b */
FS_OPT_NOT_CMP, /**< !(a cmp b) = a !cmp b */
- FS_OPT_OR_SHFT_TO_ROTL, /**< (x << c) | (x >> (bits - c)) == Rotl(x, c) */
FS_OPT_REASSOC_SHIFT, /**< (x SHF c1) SHF c2 = x SHF (c1+c2) */
FS_OPT_SHIFT_AND, /**< (a SHF c) AND (b SHF c) = (a AND b) SHF c */
FS_OPT_SHIFT_OR, /**< (a SHF c) OR (b SHF c) = (a OR b) SHF c */
diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c
index 216e556..ac989ba 100644
--- a/ir/stat/stat_dmp.c
+++ b/ir/stat/stat_dmp.c
@@ -75,7 +75,6 @@ static const struct {
{ (hook_opt_kind)FS_OPT_EOR_TO_NOT_BOOL,"boolean simplification: bool ^ 1 = !bool" },
{ (hook_opt_kind)FS_OPT_EOR_TO_NOT, "algebraic simplification: x ^ 0b1..1 = ~x, (a ^ b) & b = ~a & b" },
{ (hook_opt_kind)FS_OPT_NOT_CMP, "algebraic simplification: !(a cmp b) = a !cmp b" },
- { (hook_opt_kind)FS_OPT_OR_SHFT_TO_ROTL,"algebraic simplification: (x << c) | (x >> (bits - c)) == Rotl(x, c)" },
{ (hook_opt_kind)FS_OPT_REASSOC_SHIFT, "algebraic simplification: (x SHF c1) SHF c2 = x SHF (c1+c2)" },
{ (hook_opt_kind)FS_OPT_SHIFT_AND, "algebraic simplification: (a SHF c) AND (b SHF c) = (a AND b) SHF c" },
{ (hook_opt_kind)FS_OPT_SHIFT_OR, "algebraic simplification: (a SHF c) OR (b SHF c) = (a OR b) SHF c" },