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
: 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
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
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.
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
: 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
: 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
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
-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() &
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99785
Jeff Muizelaar changed:
What|Removed |Added
CC||jmuizelaar at mozilla dot com
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
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 {
-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)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88601
Jeff Muizelaar changed:
What|Removed |Added
CC||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
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
-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
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:
18 matches
Mail list logo