This repository has been archived by the owner on May 14, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The problem of hoisting operations where the value depends on the control flow isn't going to be fixed in llvm any time soon. Use the same hack that mesa uses. Wrap the input in a no-op asm sideeffect statement. The asm won't be hoisted, so the value dependent intrinsic call can't be hoisted either. Change-Id: Ib62f5b2aff952ddbb67de63dbfae86a65e5b60a1
- Loading branch information