This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/82394] Pointer imposes an optimization barrier
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Oct 2017 01:42:23 +0000
- Subject: [Bug middle-end/82394] Pointer imposes an optimization barrier
- Auto-submitted: auto-generated
- References: <bug-82394-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82394
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Component|c++ |middle-end
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With GCC 7.1 on x86_64, they both produce:
my_sorted_array:
.LFB0:
.cfi_startproc
xorl %eax, %eax
ret
my_sorted_array1:
.LFB1:
.cfi_startproc
xorl %eax, %eax
ret
I have not tried the trunk yet.