aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-07-25 08:30:46 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-07-25 08:30:46 +0000
commitebeadd9141ed7d9335e1612029ba3b6115e1bb26 (patch)
treebb094ce476757d492245a62154085f6ad83c0612 /gcc/optabs.c
parentd92562770a09498c0e39214b59ecfd3725198a8d (diff)
downloadgcc-ebeadd9141ed7d9335e1612029ba3b6115e1bb26.zip
gcc-ebeadd9141ed7d9335e1612029ba3b6115e1bb26.tar.gz
gcc-ebeadd9141ed7d9335e1612029ba3b6115e1bb26.tar.bz2
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
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 915a45e..12717b6 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4626,7 +4626,7 @@ can_fix_p (enum machine_mode fixmode, enum machine_mode fltmode,
return CODE_FOR_nothing;
}
-static enum insn_code
+enum insn_code
can_float_p (enum machine_mode fltmode, enum machine_mode fixmode,
int unsignedp)
{