This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Do not call convert() in PRE
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Daniel Berlin <dberlin at dberlin dot org>
- Date: Sun, 13 Jul 2008 19:25:47 +0200 (CEST)
- Subject: [PATCH] Do not call convert() in PRE
The original problem why this was introduced shouldn't have happened
and is appearantly fixed by later patches.
Bootstrapped and tested on x86_64-unknown-linux-gnu, ok?
Thanks,
Richard.
2008-07-13 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (insert_into_preds_of_block): Do not call
convert.
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c (revision 137750)
+++ tree-ssa-pre.c (working copy)
@@ -2942,14 +2942,7 @@ insert_into_preds_of_block (basic_block
{
tree builtexpr;
tree forcedexpr;
- /* When eliminating casts through unions,
- we sometimes want to convert a real to an integer,
- which fold_convert will ICE on */
- if (fold_convertible_p (type, name))
- builtexpr = fold_convert (type, name);
- else
- builtexpr = convert (type, name);
-
+ builtexpr = fold_convert (type, name);
forcedexpr = force_gimple_operand (builtexpr,
&stmts, true,
NULL);