It seems `getRawSyclObjImpl()` and `getSyclObjImpl().get()` are not identical right now in terms of final asm, see https://godbolt.org/z/6sacE3hrc . Suggest changing `getSyclObjImpl` to return by ref, then they get identical. _Originally posted by @romanovvlad in https://github.com/intel/llvm/pull/10458#discussion_r1267835028_