-
Notifications
You must be signed in to change notification settings - Fork 17k
[LoopInterchange] Ignore the cost-model, force interchange if legal #148858
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 1 commit
db9c37e
fe979ea
5bb2158
1e8e667
6a3b3f0
82a3043
58a6efb
057d32b
b5bc6d1
1736f1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
This is useful for testing purposes, to get more test coverage.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,10 @@ | |
| ; RUN: -pass-remarks-output=%t -disable-output | ||
| ; RUN: FileCheck -input-file %t --check-prefix=PROFIT-CACHE %s | ||
|
|
||
| ; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 \ | ||
| ; RUN: -pass-remarks-output=%t -disable-output -loop-interchange-force=true | ||
| ; RUN: FileCheck -input-file %t --check-prefix=PROFIT-VEC %s | ||
|
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. Could you please add another test case? Interchanging the loops in this test would be beneficial in perspective of vectorizatoin (i.e., |
||
|
|
||
| ; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 \ | ||
| ; RUN: -pass-remarks-output=%t -disable-output -loop-interchange-profitabilities=vectorize,cache,instorder | ||
| ; RUN: FileCheck -input-file %t --check-prefix=PROFIT-VEC %s | ||
|
|
||
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.
Would it be better if we call it
-loop-interchange-ignore-cost-model?-forceseems it covers wider scenarios.