-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Change SIMD Loop from Fast to only reassoc/contract #49405
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
4bfffc5
e1883dd
4d8b00e
ce65a4b
da62e37
eeaa9aa
dc436ab
648bdf6
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 |
|---|---|---|
|
|
@@ -149,7 +149,8 @@ static void enableUnsafeAlgebraIfReduction(PHINode *Phi, Loop *L, OptimizationRe | |
| return OptimizationRemark(DEBUG_TYPE, "MarkedUnsafeAlgebra", *K) | ||
| << "marked unsafe algebra on " << ore::NV("Instruction", *K); | ||
| }); | ||
| (*K)->setFast(true); | ||
| (*K)->setHasAllowReassoc(true); | ||
| (*K)->setHasAllowContract(true); | ||
|
Comment on lines
+152
to
+153
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. Can use 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. Can probably use 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. That might be going a bit too far, though I kind of want to just expose all of the fastmath flags separately. 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. IMO no signed zeros is reasonable. they don't do much and prevent a lot of useful transformations (i.e. 0-x to -x) |
||
| ++length; | ||
| } | ||
| ReductionChainLength += length; | ||
|
|
||
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.
It's actually slightly broader I think. It's the entire reduction chain. Not just the reduction operations themselves
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.
Any suggestions for the wording?