[Ubuntu 15.10] gcc: Optimize swap removal in presence of floating-point vector convert/splat sequence

Bug #1449119 reported by bugproxy
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.8 (Ubuntu)
Fix Released
Undecided
Matthias Klose
Trusty
Fix Released
Undecided
Unassigned
gcc-4.9 (Ubuntu)
Fix Released
Undecided
Unassigned
gcc-5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On Little Endian systems, GCC performs optimizations to remove unnecessary element reversals of vectors that are sometimes required to adjust for behavior of the lxvd2x, etc., instructions. In one not uncommon case, such optimizations are defeated when we perform a vector convert from double-precision to single-precision followed by a vector splat word. I have pushed patches upstream to fix this, implemented using the following revisions:

GCC trunk (6.0): 222351
GCC 5.1: 222394
GCC 4.9: 222420
GCC 4.8: 222427

I would like to see the backported patch applied to the gcc shipped with the Ubuntu 15.10 release. We should probably have a conversation about the next service pack for the 14.04 LTS release as well.

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-124330 severity-medium targetmilestone-inin1510
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1449119/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Steve Langasek (vorlon) wrote :

It looks like this bug will be fixed as a matter of course when gcc 5.1 is included in the distro and becomes the default in Ubuntu 15.10. Assigning to Matthias for confirmation.

For 14.04, this appears to be addressed by the SRU of gcc-4.8 currently in trusty-proposed, which will bring us up to revision 222448.

affects: ubuntu → gcc-defaults (Ubuntu)
Changed in gcc-defaults (Ubuntu):
assignee: nobody → Matthias Klose (doko)
status: New → In Progress
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I think bug 1449115 might be a duplicate of this one, but I'm not quite sure how to be certain.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in gcc-4.8 in trusty-updates
fixed in all version in 15.10.

affects: gcc-defaults (Ubuntu) → gcc-4.8 (Ubuntu)
no longer affects: gcc-4.9 (Ubuntu Trusty)
no longer affects: gcc-5 (Ubuntu Trusty)
Changed in gcc-4.8 (Ubuntu Trusty):
status: New → Fix Released
Changed in gcc-4.8 (Ubuntu):
status: In Progress → Fix Released
Changed in gcc-4.9 (Ubuntu):
status: New → Fix Released
Changed in gcc-5 (Ubuntu):
status: New → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-08-27 13:16 EDT-------
Already available in 15.10 release with gcc version 5.2.1-15ubuntu2.
CLosing at IBM side.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.