[llvm] [DirectX] Remove llvm.assume intrinsic (PR #166697)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 08:54:31 PST 2025


================
@@ -0,0 +1,9 @@
+; RUN: opt -S -dxil-intrinsic-expansion -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
+
+define void @test_llvm_assume(i1 %0)  {
+; CHECK-LABEL: test_llvm_assume
+; CHECK-NEXT: ret void
----------------
farzonl wrote:

I was thinking next would be better in the event someone comes along later and makes a transformation for llvm.assume. A transformation should break this test. Causing someone to come here and consider why they are doing a transformation but check-not would pass a transformation.

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


More information about the llvm-commits mailing list