[PATCH V3][GCC] Algorithmic optimization in match and simplify
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 9 Oct 2015 16:08:35 +0000 (16:08 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 9 Oct 2015 16:08:35 +0000 (16:08 +0000)
commit84ff66b884e9a67d83fa58c659a3aff52b38e138
tree7e894d743084e5a7b02d3bc20b55b143ab2d9da8
parent0fc87f2fc2c26f2f36e5ea2108b8827637ef064c
[PATCH V3][GCC] Algorithmic optimization in match and simplify

gcc/ChangeLog

* match.pd: ((X inner_op C0) outer_op C1) New pattern.
((X & C2) << C1): Expand to...
(X {&,^,|} C2 << C1): ...This.
((X & C2) >> C1): Expand to...
(X {&,^,|} C2 >> C1): ...This.

gcc/testsuite/ChangeLog

* gcc.dg/tree-ssa/forwprop-33.c: New.

Co-Authored-By: Hale Wang <hale.wang@arm.com>
From-SVN: r228661
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-33.c [new file with mode: 0644]