]> git.ipfire.org Git - thirdparty/gcc.git/commit
passes.c: Add bswap pass.
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Sun, 14 Jun 2009 14:45:32 +0000 (14:45 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Sun, 14 Jun 2009 14:45:32 +0000 (14:45 +0000)
commit03bd2f1af7c1f2343940f6ca5409048ba16a2e4c
treeb8f6f449a98ff4e7527b14909b70123620025068
parenta810f82f7bd1fb1c3f4fa1f332e736cb1ada36c4
passes.c: Add bswap pass.

2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* passes.c: Add bswap pass.
* tree-pass.h: Add pass_optimize_bswap declaration.
* tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
Include rtl.h, expr.h and optabs.h for optab_handler check.
(struct symbolic_number, pass_optimize_bswap): New definition.
(do_shift_rotate, verify_symbolic_number_p): New functions.
(find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
(gate_optimize_bswap): New function.
* tree.c (widest_int_cst_value): New function.
* tree.h (widest_int_cst_value): Prototype added.

2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/optimize-bswap-1.c: New testcase.

From-SVN: r148471
gcc/ChangeLog
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/optimize-bswap-1.c [new file with mode: 0644]
gcc/tree-pass.h
gcc/tree-ssa-math-opts.c
gcc/tree.c
gcc/tree.h