]> git.pld-linux.org Git - packages/gcc.git/blame - gcc-pr22550.patch
- a collection of four separate patches, needed to implement
[packages/gcc.git] / gcc-pr22550.patch
CommitLineData
b0a71a49
PS
1From: ja2morri at csclub dot uwaterloo dot ca (James A dot Morrison)
2Date: Mon, 25 Jul 2005 10:37:52 -0400
3
4Hi,
5
6This fixes PR22550 by simply returning COND in vrp_evaluate_condition if
7it is an INTEGER_CST. In PR22550 I believe the if (0) comes from
8merge_seq_blocks which is called after cleanup_control_flow in
9cleanup_tree_cfg. This patch has been bootstrapped and regtested on ia64-linux
10with no new regressions, ok for mainline?
11
12Thanks,
13Jim
14
152005-07-25 James A. Morrison <phython@gcc.gnu.org>
16
17 PR tree-optimization/22550
18 * tree-vrp.c (vrp_evaluate_condition): Return COND if it is an
19 INTEGER_CST.
20
21--- gcc/gcc/tree-vrp.c 20 Jul 2005 20:26:00 -0000 2.42
22+++ gcc/gcc/tree-vrp.c 25 Jul 2005 14:22:55 -0000
23@@ -3014,6 +3072,9 @@ compare_names (enum tree_code comp, tree
24 tree
25 vrp_evaluate_conditional (tree cond, bool use_equiv_p)
26 {
27+ if (TREE_CODE (cond) == INTEGER_CST)
28+ return cond;
29+
30 gcc_assert (TREE_CODE (cond) == SSA_NAME
31 || TREE_CODE_CLASS (TREE_CODE (cond)) == tcc_comparison);
32
This page took 0.044271 seconds and 4 git commands to generate.