Hi All,
For the below testcase,
$cat test.c
int foo(long *p)
{
return *p;
}
when compile with clang -O2
$clang test.c -O2 -S
$cat test.s
foo:
movl(%rdi), %eax
retq
while gcc gives
$gcc test.c -O2 -S
$cat test.s
foo:
movq(%rdi), %rax
Snapshot gcc-10-20190505 is now available on
ftp://gcc.gnu.org/pub/gcc/snapshots/10-20190505/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 10 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision
> I have now applied this variant.
You backported it onto the 8 branch on Friday:
2019-05-03 Richard Biener
Backport from mainline
[...]
2019-03-07 Richard Biener
PR tree-optimization/89595
* tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take