On 19/06/17 18:00, U.Mutlu wrote: > In a c++ file inside a loop I have the following snippet: > const bool f = func(); > // if (f) break; > > If I activate the line with "if (f) break;" then the performance > very much degrades. > > Which g++ optimization parameter should I disable (or enable) to keep the > performance? That depends on how f() is defined. We need to see a test that we can reproduce. http://www.catb.org/esr/faqs/smart-questions.html -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671