[Bug c/94392] New: Infinite loops are optimized away for C99

2020-03-29 Thread krister.walfridsson at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- Created attachment 48141 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48141&action=edit Source code reproducing the issue John Regehr noticed on twitter

[Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow

2017-07-12 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388 krister.walfridsson at gmail dot com changed: What|Removed |Added CC

[Bug c/80852] Optimisation fails to recognise sum computed by loop

2017-05-23 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80852 krister.walfridsson at gmail dot com changed: What|Removed |Added CC

[Bug target/80600] hidden symbol `__cpu_model' is referenced by DSO

2017-05-03 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80600 krister.walfridsson at gmail dot com changed: What|Removed |Added CC

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-05-03 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 --- Comment #5 from krister.walfridsson at gmail dot com --- I have extracted a smaller test case. The loops are generated from typedef mersenne_twister_engine< uint_fast32_t, 32, 624, 397, 31, 0x9908b0dfUL,

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-05-03 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 --- Comment #5 from krister.walfridsson at gmail dot com --- I have extracted a smaller test case. The loops are generated from typedef mersenne_twister_engine< uint_fast32_t, 32, 624, 397, 31, 0x9908b0dfUL,

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-04-26 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 --- Comment #3 from krister.walfridsson at gmail dot com --- You can see the issue in the generated code with int foo(std::mt19937 &gen) { std::uniform_int_distribution dist(0,99); return dist(gen); } too. I.e. it is not jus

[Bug tree-optimization/80520] New: Performance regression from missing if-conversion

2017-04-25 Thread krister.walfridsson at gmail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- Target: x86_64-linux-gnu Created attachment 41266 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41266&action=edit Te

[Bug tree-optimization/79721] New: Scalar evolution introduces signed overflow

2017-02-26 Thread krister.walfridsson at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- The function int foo(int a, int b) { int sum = 0; for (int i = 0; i < 6; i++) { sum += a + i * b; } return

[Bug tree-optimization/79390] 10% performance drop in SciMark2 LU after r242550

2017-02-06 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79390 --- Comment #3 from krister.walfridsson at gmail dot com --- Correction: -fno-split-paths does not help the trunk compiler. But it restores the result when using the r242550 compiler...

[Bug tree-optimization/79390] 10% performance drop in SciMark2 LU after r242550

2017-02-06 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79390 --- Comment #2 from krister.walfridsson at gmail dot com --- No, I get the same reduced performance when using -fno-split-paths

[Bug tree-optimization/79390] New: 10% performance drop in SciMark2 LU after r242550

2017-02-06 Thread krister.walfridsson at gmail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- Created attachment 40677 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40677&action=edit The relevant source code and generated asm

[Bug tree-optimization/79389] New: 30% performance regression in SciMark2 MonteCarlo

2017-02-06 Thread krister.walfridsson at gmail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- Created attachment 40676 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40676&action=edit The relevant source code and generated as

[Bug c++/79205] New: ICE in create_tmp_var, at gimple-expr.c:473

2017-01-23 Thread krister.walfridsson at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- gcc version 7.0.1 20170124 (r244846) ICEs when compiling the following (using the command line "g++ -c -std=c++1z bug.cpp") #include int foo(std::tuple t) {

[Bug middle-end/78847] New: pointer arithmetic from c++ ranged-based for loop not optimized

2016-12-17 Thread krister.walfridsson at gmail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- GCC has some problems eliminating overhead from C++ range-based for loops. Consider the program #include #include

[Bug tree-optimization/78343] New: Loop is not eliminated

2016-11-13 Thread krister.walfridsson at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: krister.walfridsson at gmail dot com Target Milestone: --- GCC 6 and trunk generates inefficient code for the loop unsigned int test(unsigned int quant) { unsigned int sum = 0; for (unsigned int i = 0; i < quant;

[Bug tree-optimization/78035] Inconsistency between address comparison and alias analysis

2016-11-02 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78035 krister.walfridsson at gmail dot com changed: What|Removed |Added CC

[Bug fortran/48244] iso-c-binding support missing on NetBSD (with patch)

2013-06-29 Thread krister.walfridsson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48244 --- Comment #2 from krister.walfridsson at gmail dot com --- > --- Comment #1 from Dominique d'Humieres --- > Is there still maintainers/users of NetBSD? There are still users. But my paperwork is not in order since I changed em