[AMDGPU][OpenMP] Add memory pool size check to isValidMemoryPool

Keeping all the checks in one place for future simplification.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D110513

GitOrigin-RevId: b1695c2eb8df0ceae5014dd4e8cc855d12309e2d
1 file changed