fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
398 B11 linesraw
1# Add a check that the IR contains some expected metadata
2CHECK: !{!"ProfileFormat", !"InstrProf"}
3CHECK: !"ProfileSummary"
4
5# Make sure that the hot function is marked with `inlinehint`
6CHECK: define {{.*}} @hot_function
7CHECK-NEXT: Function Attrs:{{.*}}inlinehint
8
9# Make sure that the cold function is marked with `cold`
10CHECK: define {{.*}} @cold_function
11CHECK-NEXT: Function Attrs:{{.*}}cold