[Bug tree-optimization/107639] GCC unable to reason about range of idx/len

2022-11-11 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107639 --- Comment #1 from Jeff Muizelaar --- This test case comes from https://github.com/llvm/llvm-project/issues/56612

[Bug tree-optimization/107639] New: GCC unable to reason about range of idx/len

2022-11-11 Thread jmuizelaar at mozilla dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- Clang 14 is able to optimize this function to just 'ret'. GCC 12.2 is not. #include void do_checks(const int* begin, const size_t len){ size

[Bug web/107297] Support markdown in bugzilla comments

2022-10-18 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107297 --- Comment #5 from Jeff Muizelaar --- (In reply to Eric Gallager from comment #2) > I would also want comments to be editable if this gets turned on, in case I > screw up my formatting... is there a way to allow that in bugzilla? bugzilla.mozi

[Bug other/107297] New: Support markdown in bugzilla comments

2022-10-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- bugzilla.mozilla.org switched to this a while ago and it's a really nice improvement.

[Bug tree-optimization/107263] Memcpy not elided when initializing struct

2022-10-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107263 --- Comment #2 from Jeff Muizelaar --- Even for small arrays clang does a noticeably better job: https://gcc.godbolt.org/z/4d3TjGazY

[Bug tree-optimization/107263] New: Memcpy not elided when initializing struct

2022-10-14 Thread jmuizelaar at mozilla dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- With the following code struct Foo { Foo* next; char arr[580]; }; void ctx_push(Foo* f) { Foo tmp = { f->next }; *f = tmp; } Clang is a

[Bug tree-optimization/107250] New: Load unnecessarily happens before malloc

2022-10-13 Thread jmuizelaar at mozilla dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- The following code will be compiled with the load of next happening before the call to malloc. This generates worse code than if the load is delayed until after

[Bug ipa/99785] Awful lot of time spent building gl.cc in Firefox

2022-05-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99785 --- Comment #22 from Jeff Muizelaar --- GCC doesn't support clang's xyzw vector attributes, so it still not easy to build the clang path in GCC

[Bug tree-optimization/99966] New: Bounds check not eliminated by assert

2021-04-07 Thread jmuizelaar at mozilla dot com via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- #include #include #include #include uint64_t f(std::vector& data, size_t start, size_t end){ assert(start < end && start < data.size() &

[Bug ipa/99785] Awful lot of time spent building gl.cc in Firefox

2021-03-26 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99785 Jeff Muizelaar changed: What|Removed |Added CC||jmuizelaar at mozilla dot com

[Bug middle-end/98357] Bounds check not eliminated

2020-12-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98357 --- Comment #1 from Jeff Muizelaar --- Clang compiles this to: foo(char*, unsigned long, unsigned long, unsigned long): # @foo(char*, unsigned long, unsigned long, unsigned long) xor eax, eax cmp

[Bug middle-end/98357] New: Bounds check not eliminated

2020-12-17 Thread jmuizelaar at mozilla dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- #include char foo(char* data, size_t len, size_t i, size_t j) { if (i < len && j <= i) { if (j < len) { return data[j]; } else {

[Bug tree-optimization/97529] New: Condition not constant folded

2020-10-22 Thread jmuizelaar at mozilla dot com via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- >From https://github.com/rust-lang/rust/issues/74938 GCC compiles: #include const size_t N = 3; int foo(size_t len) { size_t newlen = (len / N)

[Bug c++/88601] We may consider adding __builtin_convertvector and __builtin_shufflevector for better compaitbility with Clang

2020-04-17 Thread jmuizelaar at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88601 Jeff Muizelaar changed: What|Removed |Added CC||jmuizelaar at mozilla dot com

[Bug debug/89613] ICF disambuigation doesn't work

2019-03-06 Thread jmuizelaar at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89613 --- Comment #2 from Jeff Muizelaar --- The generated asm is: 500: 31 c0 xor%eax,%eax 502: e8 29 01 00 00 callq 630 507: 89 c2 mov%eax,%edx 509: 31 c0 xor%eax

[Bug debug/89613] New: ICF disambuigation doesn't work

2019-03-06 Thread jmuizelaar at mozilla dot com
debug Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- Compiling the following with gcc-7.3 -flto -O2 -gdwarf-5 __attribute__((noinline)) int a() { return 5; } __attribute__((noinline)) int b() { return 5; } int

[Bug middle-end/82705] New: Missing tail calls for large structs

2017-10-24 Thread jmuizelaar at mozilla dot com
-end Assignee: unassigned at gcc dot gnu.org Reporter: jmuizelaar at mozilla dot com Target Milestone: --- The following code: struct Foo { int o[16]; }; __attribute__((noinline)) Foo moo() { return {0}; } Foo goo() { return moo(); } with -O3 -fno

[Bug c++/48379] New: -Wdouble-promotion warns for promotion by varargs

2011-03-30 Thread jmuizelaar at mozilla dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48379 Summary: -Wdouble-promotion warns for promotion by varargs Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: