Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

only turn on CSE

caoj
Beginner
167 Views
Does anyone know how to only turn on CSE optimization (common sub-expression elimination) for icc? Thanks.
0 Kudos
1 Reply
Lingfeng_C_Intel
Employee
167 Views
Quoting - caoj
Does anyone know how to only turn on CSE optimization (common sub-expression elimination) for icc? Thanks.

Please using /Og option for global optimizations. But /Og is deprecated in Visual C++ 2005; use either /O1 or /O2.

Thanks,
Wise
Reply