[Bug c++/85441] Empty loops not optimised away

2018-04-18 Thread sebastian321123 at interia dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85441 --- Comment #3 from sebastian321123 at interia dot pl --- I am afraid that nothing changes with optimisation flags. I am getting the same results for -O1, -O2, -O3 and -Os

[Bug c++/85441] New: Empty loops not optimised away

2018-04-17 Thread sebastian321123 at interia dot pl
++ Assignee: unassigned at gcc dot gnu.org Reporter: sebastian321123 at interia dot pl Target Milestone: --- This code compiles for a long time and has high memory usage (roughly 2GiB). I suspect that empty loops are not removed. Code: constexpr double foo(const unsigned int N