Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGStmtOpenMP.cpp | ||
---|---|---|
5368–5369 | I noticed that here we set this attribute on the same function that is created by emitOutlinedFunctionPrologue but there AlwaysInline attribute is guaranteed to be set under same condition. So I suppose we could remove this piece of code? |
clang/test/OpenMP/parallel_for_noinline.cpp | ||
---|---|---|
1 ↗ | (On Diff #382738) | It was my first thought too but I don't see how to check this bug with #pragma omp parallel if(0). If I add function with #pragma omp parallel for there it goes contrary to the test file name (parallel_if_codegen_PR51349). More than that, checks generated by update_cc_test_checks.py are too overwhelming and hide whatever we were going to test there. I can do it this way or may be you have any other ideas? What if I rename my file this test file name to parallel_for_codegen_PR51349.cpp instead? They are related and thus we don't loose sight of them. |
clang/test/OpenMP/parallel_for_noinline.cpp | ||
---|---|---|
1 ↗ | (On Diff #382738) | Just adding this triggered the bug for me and hardly generates anything. #pragma omp parallel ; |
I noticed that here we set this attribute on the same function that is created by emitOutlinedFunctionPrologue but there AlwaysInline attribute is guaranteed to be set under same condition. So I suppose we could remove this piece of code?