diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-11 11:36:12 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-11 15:37:34 -0700 |
commit | 2cf0969de5e50f5e3673d5a400bedc26b2d746d6 (patch) | |
tree | 4f54ae746454326f5fd377c90077063aa3b76801 | |
parent | 1a872b1af37927d689ec7af0921af7f3a9dcb1fd (diff) |
Remove redundant type checks for constant constructors
All of the cases (e.g., arrays and structures) that were being
filtered by these tests were already filtered by the earlier
is_numeric and is_boolean tests.
-rw-r--r-- | ast_function.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ast_function.cpp b/ast_function.cpp index b0700bed5f..aba43749e0 100644 --- a/ast_function.cpp +++ b/ast_function.cpp @@ -548,9 +548,6 @@ ast_function_expression::hir(exec_list *instructions, * constant representing the complete collection of parameters. */ if (all_parameters_are_constant - && (sig->return_type->is_scalar() - || sig->return_type->is_vector() - || sig->return_type->is_matrix()) && (components_used >= type_components)) return new ir_constant(sig->return_type, & actual_parameters); else |