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

Kohei Asano via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 22:43:59 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
----------------
khei4 wrote:

You should use [llvm/utils/update_test_checks.py](https://github.com/llvm/llvm-project/blob/main/llvm/utils/update_test_checks.py), for transform tests especially for which have `; NOTE: Assertions have been autogenerated by utils/update_test_checks.py` for L1. 

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


More information about the llvm-commits mailing list