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

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 01:13:48 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 %}
----------------
Keenuts wrote:

The TODO is here because of the block sorting issue no?

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


More information about the llvm-commits mailing list