[clang] [HLSL][SPIR-V] Add `-fspv-enable-maximal-reconvergence` flag to clang dxc. (PR #163474)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 06:53:19 PDT 2025


================
@@ -9600,6 +9600,15 @@ def fhlsl_spv_use_unknown_image_format
                "from the resource's data type.">,
       MarshallingInfoFlag<LangOpts<"HLSLSpvUseUnknownImageFormat">>;
 
+def fhlsl_spv_enable_maximal_reconvergence
+    : Flag<["-"], "fspv-enable-maximal-reconvergence">,
+      Group<dxc_Group>,
+      Visibility<[CC1Option, DXCOption]>,
+      HelpText<"Enables maximal reconvergence for SPIR-V codegen. This ensures "
+               "that all control flow merges at the nearest possible merge point "
+               "as defined by the Vulkan spec.">,
----------------
s-perron wrote:

Update as above.

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


More information about the cfe-commits mailing list