This reverts commit 23c762e388 in the blender-v4.5-release branch to work around HIP compiler issues. It will remain in the main branch. Ref blender/blender#139836
23c762e388