aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-06-02 16:39:26 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-06-02 16:39:26 +0000
commit5521cae9c297aa825d657b79f44097006deedfc8 (patch)
tree4d9ee670797c5723177a276f63aa8d30b97e1454 /gcc/tree-if-conv.c
parent437ffe7b16428fc85566cc80207b2591ecbbf1e9 (diff)
downloadgcc-5521cae9c297aa825d657b79f44097006deedfc8.zip
gcc-5521cae9c297aa825d657b79f44097006deedfc8.tar.gz
gcc-5521cae9c297aa825d657b79f44097006deedfc8.tar.bz2
Fix PR44363: don't abort when the ifcvt analysis fails to recognize a Gimple stmt.
2010-06-02 Sebastian Pop <sebastian.pop@amd.com> PR middle-end/44363 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable, return false instead. From-SVN: r160163
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r--gcc/tree-if-conv.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index f64623d..f6e8c96 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -483,8 +483,8 @@ get_loop_body_in_if_conv_order (const struct loop *loop)
| else
| S2;
- S1 will be predicated with "x", and S2 will be predicated with
- "!x". */
+ S1 will be predicated with "x", and
+ S2 will be predicated with "!x". */
static bool
predicate_bbs (loop_p loop)
@@ -546,12 +546,9 @@ predicate_bbs (loop_p loop)
break;
}
- case GIMPLE_SWITCH:
+ default:
/* Not handled yet in if-conversion. */
return false;
-
- default:
- gcc_unreachable ();
}
}