summaryrefslogtreecommitdiff
path: root/src/ir/ordering.h
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2022-09-06 23:56:06 +0300
committerGitHub <noreply@github.com>2022-09-06 13:56:06 -0700
commitbd5422c8f13265cf89bdf49f30a04b882ee91d0e (patch)
tree86f6158549557dfed7da1f5c48a34dc8a6eeff5d /src/ir/ordering.h
parente584f69e12b261740da6da87f0cc4550f2312bdb (diff)
downloadbinaryen-bd5422c8f13265cf89bdf49f30a04b882ee91d0e.tar.gz
binaryen-bd5422c8f13265cf89bdf49f30a04b882ee91d0e.tar.bz2
binaryen-bd5422c8f13265cf89bdf49f30a04b882ee91d0e.zip
[OptimizeInstructions] Simplify two binary expressions with asymmetric shifts and same constant (#4996)
(x >> C) << C -> x & -(1 << C) (x >>> C) << C -> x & -(1 << C) (x << C) >>> C -> x & (-1 >>> C) // (x << C) >> C doesn't support Found by the superoptimizer #4994 Fixes #5012
Diffstat (limited to 'src/ir/ordering.h')
0 files changed, 0 insertions, 0 deletions