[llvm] [SPIR-V] Support optimization of branching with analyzeBranch/removeBranch/insertBranch functions (PR #110653)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 01:52:57 PDT 2024


================
@@ -0,0 +1,250 @@
+; The goal of this test case is to ensure that translation does not crash when during branching
+; optimization analyzeBranch() requires helper methods of removeBranch() and insertBranch()
+; to manage subsequent operations.
+
+; RUN: llc -O0 -mtriple=spirv64-unknown-linux %s -o - | FileCheck %s
+; TODO: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
VyacheslavLevytskyy wrote:

yes, indeed

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


More information about the llvm-commits mailing list