2008-11-07 Sebastian Pop <sebastian.pop@amd.com>
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Nov 2008 18:03:04 +0000 (18:03 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Nov 2008 18:03:04 +0000 (18:03 +0000)
PR middle-end/37379
* tree-scalar-evolution.c (instantiate_scev_1): Return
chrec_dont_know for VL_EXP_CLASS_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141682 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-scalar-evolution.c

index 40b0dcb..984447e 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>
+
+       PR middle-end/37379
+       * tree-scalar-evolution.c (instantiate_scev_1): Return
+       chrec_dont_know for VL_EXP_CLASS_P.
+       
 2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
 
        * reg-stack.c (reg_to_stack): Add missing braces in memset
index 52e2c75..51bbd4b 100644 (file)
@@ -2213,7 +2213,9 @@ instantiate_scev_1 (basic_block instantiate_below,
       break;
     }
 
-  gcc_assert (!VL_EXP_CLASS_P (chrec));
+  if (VL_EXP_CLASS_P (chrec))
+    return chrec_dont_know;
+
   switch (TREE_CODE_LENGTH (TREE_CODE (chrec)))
     {
     case 3: