[llvm] [Clang][HLSL][GVN] Prevent phi codgen of isTokenLike types (PR #162363)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 9 13:24:46 PDT 2025
================
@@ -0,0 +1,34 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -S -passes=gvn %s | FileCheck %s
+
+; NOTE: A test to confirm GVN doesn't introduce phis for pre loads of token
+; NOTE: like types. This implies the CHECKS should exactly match the IR.
----------------
bogner wrote:
This comment doesn't seem strictly accurate - looks like GVN split a critical edge in the CHECKs so it doesn't match "exactly"
https://github.com/llvm/llvm-project/pull/162363
More information about the llvm-commits
mailing list