Apply the optimization to change for OpenCL too. Clean up some unnecessary checks. Change-Id: I840261fe35baeeadeba7388e86779d482f509aad [ROCm/clr commit: 6c5a42b33c]
6c5a42b33c