This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23855] loop header should also be pulled out of the inner loop too
- 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: Sun, 14 Aug 2016 03:59:52 +0000
- Subject: [Bug tree-optimization/23855] loop header should also be pulled out of the inner loop too
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-23855-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23855
--- Comment #29 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We unswitch on the outer loops now in GCC 6 and above.
So can we consider this as fixed?
The code for aarch64-linux-gnu on the trunk looks like:
.L3:
mov w19, 0
.p2align 3
.L4:
bl bar
add w19, w19, 1
cmp w20, w19
bne .L4
add w21, w21, 1
cmp w22, w21
bne .L3