re PR tree-optimization/49715 (Could do more efficient unsigned-to-float to conversio...
authorRichard Guenther <rguenther@suse.de>
Mon, 25 Jul 2011 08:30:46 +0000 (08:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Jul 2011 08:30:46 +0000 (08:30 +0000)
commitebeadd9141ed7d9335e1612029ba3b6115e1bb26
treebb094ce476757d492245a62154085f6ad83c0612
parentd92562770a09498c0e39214b59ecfd3725198a8d
re PR tree-optimization/49715 (Could do more efficient unsigned-to-float to conversions based on range information)

2011-07-25  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49715
* tree-vrp.c: Include expr.h and optabs.h.
(range_fits_type_): New function.
(simplify_float_conversion_using_ranges): Likewise.
(simplify_stmt_using_ranges): Call it.
* Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
* optabs.c (can_float_p): Export.
* optabs.h (can_float_p): Declare.

* gcc.target/i386/pr49715-1.c: New testcase.
* gcc.target/i386/pr49715-2.c: Likewise.

From-SVN: r176735
gcc/ChangeLog
gcc/Makefile.in
gcc/optabs.c
gcc/optabs.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr49715-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr49715-2.c [new file with mode: 0644]
gcc/tree-vrp.c