[llvm] [LLVM] BasicTTIImpl allow unknown type during legality checking (PR #89848)

Billy Zhu via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 10:58:40 PDT 2024


================
@@ -2068,3 +2068,25 @@ cond.end:                                         ; preds = %entry, %cond.false
   %conv = sext i3 %cond to i8
   ret i8 %conv
 }
+
+; Don't create a table with an unknown type
+define { i8, i8 } @test_unknown_result_type(i8 %n) {
+; CHECK-LABEL: @test_unknown_result_type(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: switch
----------------
zyx-billy wrote:

oh I see. Thanks for the tip!

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


More information about the llvm-commits mailing list