-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[CodeLayout] Faster basic block reordering, ext-tsp #68617
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,6 +1,5 @@ | ||
;; See also llvm/unittests/Transforms/Utils/CodeLayoutTest.cpp | ||
; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -enable-ext-tsp-block-placement=1 < %s | FileCheck %s | ||
; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -enable-ext-tsp-block-placement=1 -ext-tsp-chain-split-threshold=0 -ext-tsp-enable-chain-split-along-jumps=0 < %s | FileCheck %s -check-prefix=CHECK2 | ||
|
||
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. Why is the 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. The test relies on another option, |
||
define void @func1a() { | ||
; Test that the algorithm positions the most likely successor first | ||
|
@@ -329,8 +328,8 @@ end: | |
} | ||
|
||
define void @func4() !prof !11 { | ||
; Test verifying that, if enabled, chains can be split in order to improve the | ||
; objective (by creating more fallthroughs) | ||
; Test verifying that chains can be split in order to improve the objective | ||
; by creating more fallthroughs | ||
; | ||
; +-------+ | ||
; | entry |--------+ | ||
|
@@ -354,19 +353,11 @@ define void @func4() !prof !11 { | |
; | b2 | <+ ----+ | ||
; +-------+ | ||
; | ||
; With chain splitting enabled: | ||
; CHECK-LABEL: func4: | ||
; CHECK: entry | ||
; CHECK: b1 | ||
; CHECK: b3 | ||
; CHECK: b2 | ||
; | ||
; With chain splitting disabled: | ||
; CHECK2-LABEL: func4: | ||
; CHECK2: entry | ||
; CHECK2: b1 | ||
; CHECK2: b2 | ||
; CHECK2: b3 | ||
|
||
entry: | ||
call void @b() | ||
|
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.
Nit: This is often called self-loop or loop. If you think fine, I'll push a NFC commit renaming isSelfEdge to isSelfLoop...