[clang] [llvm] [SPIR-V] Report branch divergence in TTI (PR #214624)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 02:56:05 PST 2026


================
@@ -50,6 +50,11 @@ class SPIRVTTIImpl final : public BasicTTIImplBase<SPIRVTTIImpl> {
     return TTI::PSK_FastHardware;
   }
 
+  bool hasBranchDivergence(const Function *F = nullptr) const override {
+    // Shader and OpenCL work-items execute divergently across invocations.
+    return true;
----------------
aobolensk wrote:

https://github.com/llvm/llvm-project/pull/244345 is merged

https://github.com/llvm/llvm-project/pull/214624


More information about the cfe-commits mailing list