mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
make pgo-branch-weights test not dependent on argument attributes
This commit is contained in:
parent
5979b681e6
commit
45ee3fc700
@ -2,10 +2,10 @@
|
|||||||
# First, establish that certain !prof labels are attached to the expected
|
# First, establish that certain !prof labels are attached to the expected
|
||||||
# functions and branching instructions.
|
# functions and branching instructions.
|
||||||
|
|
||||||
CHECK: define void @function_called_twice(i32 %c) {{.*}} !prof [[function_called_twice_id:![0-9]+]] {
|
CHECK: define void @function_called_twice(i32 {{.*}} !prof [[function_called_twice_id:![0-9]+]] {
|
||||||
CHECK: br i1 {{.*}}, label {{.*}}, label {{.*}}, !prof [[branch_weights0:![0-9]+]]
|
CHECK: br i1 {{.*}}, label {{.*}}, label {{.*}}, !prof [[branch_weights0:![0-9]+]]
|
||||||
|
|
||||||
CHECK: define void @function_called_42_times(i32 %c) {{.*}} !prof [[function_called_42_times_id:![0-9]+]] {
|
CHECK: define void @function_called_42_times(i32{{.*}} %c) {{.*}} !prof [[function_called_42_times_id:![0-9]+]] {
|
||||||
CHECK: switch i32 %c, label {{.*}} [
|
CHECK: switch i32 %c, label {{.*}} [
|
||||||
CHECK-NEXT: i32 97, label {{.*}}
|
CHECK-NEXT: i32 97, label {{.*}}
|
||||||
CHECK-NEXT: i32 98, label {{.*}}
|
CHECK-NEXT: i32 98, label {{.*}}
|
||||||
|
Loading…
Reference in New Issue
Block a user