r148471 - in /trunk/gcc: ChangeLog passes.c tes...
krebbel@gcc.gnu.org
krebbel@gcc.gnu.org
Sun Jun 14 14:45:00 GMT 2009
Author: krebbel
Date: Sun Jun 14 14:45:32 2009
New Revision: 148471
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148471
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/optimize-bswap-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/passes.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-pass.h
trunk/gcc/tree-ssa-math-opts.c
trunk/gcc/tree.c
trunk/gcc/tree.h
More information about the Gcc-cvs
mailing list