-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[profcheck] Add unknown branch weights to expanded cmpxchg loop. #165841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py | ||
| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals | ||
| ; RUN: opt -S -mtriple=aarch64-linux-gnu -passes=atomic-expand %s | FileCheck %s | ||
|
|
||
| define float @test_atomicrmw_fadd_f32(ptr %ptr, float %value) { | ||
| define float @test_atomicrmw_fadd_f32(ptr %ptr, float %value) !prof !0 { | ||
| ; CHECK-LABEL: @test_atomicrmw_fadd_f32( | ||
| ; CHECK-NEXT: [[TMP1:%.*]] = load float, ptr [[PTR:%.*]], align 4 | ||
| ; CHECK-NEXT: br label [[ATOMICRMW_START:%.*]] | ||
|
|
@@ -14,7 +14,7 @@ define float @test_atomicrmw_fadd_f32(ptr %ptr, float %value) { | |
| ; CHECK-NEXT: [[SUCCESS:%.*]] = extractvalue { i32, i1 } [[TMP4]], 1 | ||
| ; CHECK-NEXT: [[NEWLOADED:%.*]] = extractvalue { i32, i1 } [[TMP4]], 0 | ||
| ; CHECK-NEXT: [[TMP5]] = bitcast i32 [[NEWLOADED]] to float | ||
| ; CHECK-NEXT: br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]] | ||
| ; CHECK-NEXT: br i1 [[SUCCESS]], label [[ATOMICRMW_END:%.*]], label [[ATOMICRMW_START]], !prof [[PROF1:![0-9]+]] | ||
| ; CHECK: atomicrmw.end: | ||
| ; CHECK-NEXT: ret float [[TMP5]] | ||
| ; | ||
|
|
@@ -336,3 +336,11 @@ define <2 x half> @atomicrmw_fminimum_2_x_half(ptr %ptr, <2 x half> %val) { | |
| %res = atomicrmw fminimum ptr %ptr, <2 x half> %val seq_cst | ||
| ret <2 x half> %res | ||
| } | ||
|
|
||
| !0 = !{!"function_entry_count", i64 1000} | ||
| ;. | ||
| ; CHECK: attributes #[[ATTR0:[0-9]+]] = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Manually add
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing something else was changed to infer the new attribute and your local |
||
| ;. | ||
| ; CHECK: [[META0:![0-9]+]] = !{!"function_entry_count", i64 1000} | ||
| ; CHECK: [[PROF1]] = !{!"unknown", !"atomic-expand"} | ||
| ;. | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The argument order seems wrong. (was changed 2h ago #166032)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#166601
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Tim!