We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2404783 commit 51d9546Copy full SHA for 51d9546
tests/codegen/error-provide.rs
@@ -36,7 +36,9 @@ impl std::error::Error for MyError {
36
// LLVM should be able to optimize multiple .provide_* calls into a switch table
37
// and eliminate redundant ones, rather than compare one-by-one.
38
39
- // CHECK: switch i64 %{{.*}}, label %{{.*}} [
+ // CHECK-NEXT: start:
40
+ // CHECK-NEXT: %[[SCRUTINEE:[^ ]+]] = load i64, ptr
41
+ // CHECK-NEXT: switch i64 %[[SCRUTINEE]], label %{{.*}} [
42
// CHECK-COUNT-3: i64 {{.*}}, label %{{.*}}
43
// CHECK-NEXT: ]
44
request
0 commit comments