Rikard Falkeborn

Results 5 comments of Rikard Falkeborn

This is why I don't like optimizations :) I'm using gcc 12.1.1, valgrind 3.19.0, linux. I did the measurements using callgrind when running `cppcheck` on `main.cpp` in `simplecpp` (I used...

I also tested with constexpr, and gcc didn't seem to care about it, so I didn't add it. I'll see if I can reproduce the result with value flow disabled...

> This looks really interesting. Could you also provide a small diff example of the generated code? So given the following silly example file: ``` bool isF(const Scope *s) {...

So, my results with clang-14 (still using main.cpp in simplecpp) is the improvements with this PR improves IR with clang too (without the constexpr), but I guess I should try...

Right, I rebased and tested it on the latest master. With the constexpr-changes you suggested, there is a slight improvement, but not as much as I initially thought. So maybe...