-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Disable vectorizers in early optimizations #2402
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
[SYCL] Disable vectorizers in early optimizations #2402
Conversation
/summary:run |
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.
Please, change the default value of SLPVectorize
in SYCL mode to off, so we can still control SLP vectorizer using compiler options.
Basically, move the change to the driver/FE and add a regression test.
BTW, it make sense to disable loop vectorizer by default as well. |
Moved changes to clang driver, added test
/summary:run |
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.
LGTM, although I think the criteria for turning on/off optimizations should be target triple, rather than language mode.
I expect similar issues for SPIR target in OpenCL mode.
@mdtoguchi, @AGindinson, could you take a look, please? |
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.
LGTM, thanks!
@AlexeySachkov, I would prefer if we disable vectorizers only for SPIR target as I noted here. So if Xilinx FPGA uses different triple, it can still control the default behavior. NOTE: NVPTX, doesn't completely disables the vectorizer - https://github.com/intel/llvm/blob/sycl/llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h#L65. It's not clear what is the impact on performance for NVPTX. @keryell, note, this patch changes the default value, but vectorizers still can be enabled via command line options. |
Ok, let's submit this patch as-is for now and I will prepare a follow-up PR to address your comment (submitted #2421 to track that and discuss) |
Thanks! |
This reverts commit 20921b1. Previous changes make this commit unnecessary.
[DevASAN][CPU] bugfix for mmap return value check.
[DevASAN][CPU] bugfix for mmap return value check.
No description provided.