From 83c3b3aa5290cc98748efc489f7a0e7002de703d Mon Sep 17 00:00:00 2001 From: jnorris Date: Mon, 29 Jun 2015 15:28:02 +0000 Subject: [PATCH] * omp-low.c (expand_omp_target): Remove unnecessary conversion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@225126 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.gomp | 4 ++++ gcc/omp-low.c | 15 +++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog.gomp b/gcc/ChangeLog.gomp index 4d449b03839..f2b6c4bfc74 100644 --- a/gcc/ChangeLog.gomp +++ b/gcc/ChangeLog.gomp @@ -1,3 +1,7 @@ +2015-06-29 James Norris + + * omp-low.c (expand_omp_target): Remove unnecessary conversion. + 2015-06-26 Nathan Sidwell * config/nvptx/nvptx.md (UNSPEC_ID): Rename to ... diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 5914fcf6469..24fac7c0f97 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -10138,22 +10138,17 @@ expand_omp_target (struct omp_region *region) = fold_convert_loc (gimple_location (entry_stmt), integer_type_node, integer_one_node); /* ..., but if present, use the value specified by the respective - clause, making sure that are of the correct type. */ + clause. */ c = find_omp_clause (clauses, OMP_CLAUSE_NUM_GANGS); if (c) - t_num_gangs = fold_convert_loc (OMP_CLAUSE_LOCATION (c), - integer_type_node, - OMP_CLAUSE_NUM_GANGS_EXPR (c)); + t_num_gangs = OMP_CLAUSE_NUM_GANGS_EXPR (c); c = find_omp_clause (clauses, OMP_CLAUSE_NUM_WORKERS); if (c) - t_num_workers = fold_convert_loc (OMP_CLAUSE_LOCATION (c), - integer_type_node, - OMP_CLAUSE_NUM_WORKERS_EXPR (c)); + t_num_workers = OMP_CLAUSE_NUM_WORKERS_EXPR (c); c = find_omp_clause (clauses, OMP_CLAUSE_VECTOR_LENGTH); if (c) - t_vector_length = fold_convert_loc (OMP_CLAUSE_LOCATION (c), - integer_type_node, - OMP_CLAUSE_VECTOR_LENGTH_EXPR (c)); + t_vector_length = OMP_CLAUSE_VECTOR_LENGTH_EXPR (c); + args.quick_push (t_num_gangs); args.quick_push (t_num_workers); args.quick_push (t_vector_length); -- 2.11.4.GIT