Skip to content

[OpenMP][NFC] Fix -Wsign-compare warning in kmp_collapse.cpp #137487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openmp/runtime/src/kmp_collapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,8 @@ kmp_identify_nested_loop_structure(/*in*/ bounds_info_t *original_bounds_nest,
original_bounds_nest[1].ub1_u64);
// lower triangle loop inner bounds need to be {0,0}:{0/-1,1}
if (inner_lb0_u64 == 0 && inner_lb1_u64 == 0 &&
(inner_ub0_u64 == 0 || inner_ub0_u64 == -1) && inner_ub1_u64 == 1) {
(inner_ub0_u64 == 0 || inner_ub0_u64 == (kmp_uint64)-1) &&
inner_ub1_u64 == 1) {
return nested_loop_type_lower_triangular_matrix;
}
// upper triangle loop inner bounds need to be {0,1}:{N,0}
Expand Down
Loading