- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is it possible to invoke individual optimizations separately with ICC? For eg: Can dead code elimination pass be invoked on source code? If possible, is there a document that lists the supported optimization flags?
Thanks,
Venkat
- Tags:
- CC++
- Development Tools
- General Support
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Venkat,
Refer to the below links for more information on Optimization flags:
Recommendations for optimization options:
https://software.intel.com/en-us/articles/step-by-step-optimizing-with-intel-c-compiler
ICC developer guide:
https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference
To answer your question, with the -O flag(defaults to -O2 on icc), various optimizations can be invoked(including dead code elimination), which happens under the hood. The number next to O(ex: -O2 or -O3) specifies varying levels of optimization.
--Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rahul,
Thanks for your response.
I understand that various passes are invoked in the standard set of optimization sequences like -O1/2/3. But is there a way to invoke them individually?
-Venkat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
PFA file containing exhaustive list of various optimization flags that could be invoked.
On Linux platform, after sourcing the compiler, type "icc --help" on the terminal to view all the supported flags by icc. In the Compiler options list, under the subheading Optimizations/IPO/Advanced Optimizations, choose any flag of your choice for invoking individual optimizations on your program.
--Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Venkat,
Let us know if your issue is resolved, so that we can close the thread.
--Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are closing this thread assuming that the solution provided helped. Feel free to post a new thread if your issue still persists.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page