]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-vect-patterns.c
Protect some checks of DECL_FUNCTION_CODE
[thirdparty/gcc.git] / gcc / tree-vect-patterns.c
index 8430c98acc68de4894c5563677895e48746ee045..ccb2e1edecda09db786c0d98ccd25f5be107c7e4 100644 (file)
@@ -1297,7 +1297,7 @@ vect_recog_pow_pattern (stmt_vec_info stmt_vinfo, tree *type_out)
     {
       if (flag_unsafe_math_optimizations
          && TREE_CODE (base) == REAL_CST
-         && !gimple_call_internal_p (last_stmt))
+         && gimple_call_builtin_p (last_stmt, BUILT_IN_NORMAL))
        {
          combined_fn log_cfn;
          built_in_function exp_bfn;