[llvm] [GlobalISel] use constexpr LLT types when creating ISel data (PR #191574)

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 03:32:00 PDT 2026


================
@@ -449,4 +450,116 @@ TEST(LowLevelTypeTest, IsScalableVector) {
   EXPECT_TRUE(LLT::scalable_vector(2, 32).isScalableVector());
   EXPECT_TRUE(LLT::scalable_vector(1, 32).isScalableVector());
 }
+
+// Demonstrate that LLT::integer() and LLT::floatIEEE() produce different types
----------------
davemgreen wrote:

This test looks quite AI generated (quite verbose and not of a lot of value). Is it worth keeping or are the existing tests enough to show the issue is fixed? The real test is whether we can select instructions properly, and it hopefully won't be long until we have a real target working in tree.

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


More information about the llvm-commits mailing list