Re: [PATCH] D18276: [OpenMP] Allow reduction on pointer dereference

2016-03-20 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:913-929 @@ -912,9 +912,19 @@ }); - } else if (auto *ASE = dyn_cast(IRef)) { -auto *Base = ASE->getBase()->IgnoreParenImpCasts(); -while (auto *TempASE = dyn_cast(Base)) -

[PATCH] D18276: [OpenMP] Allow reduction on pointer dereference

2016-03-19 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: ABataev, hfinkel, carlo.bertolli, sfantao. Hahnfeld added a subscriber: cfe-commits. Pointer dereference is equal to access of first array element which is already allowed for the `reduction` clause. While at it also add test for CodeGen