[SYCL] "Assuming SYCL queries fit in int" feature is broken for -O1
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
**Describe the bug**
https://github.com/intel/llvm/blob/sycl/sycl/test/check_device_code/id_queries_fit_int.cpp test fails after community changes (https://github.com/intel/llvm/pull/3233/). "llvm.assume" intrinsic is not generated with O1 optimization level as it expected from test checks.
I temporarily disabled optimizations to unlock pulldown https://github.com/intel/llvm/pull/3233/commits/18b3ac2e317696c066744981d719f4268674365c
**To Reproduce**
```
# If the https://github.com/intel/llvm/pull/3233 is not merged yet, fetch the PR:
git fetch origin pull/3233/head:pr_3233
git checkout pr_3233
# Then revert the commit that disables the test
git revert 18b3ac2e317696c066744981d719f4268674365c
# Then build with the normal procedure https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain
python $DPCPP_HOME/llvm/buildbot/configure.py
python $DPCPP_HOME/llvm/buildbot/compile.py
# And run the tests
python $DPCPP_HOME/llvm/buildbot/check.py
```
Contributor guide
Assessment
This issue has not been assessed yet.