This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
forked from luqmana/llvm
-
Notifications
You must be signed in to change notification settings - Fork 63
use -O3 with some optimizations disabled on sparc w/ gcc #62
Merged
alexcrichton
merged 1 commit into
rust-lang:rust-llvm-2016-10-29
from
binarycrusader:llvm-sparc
Feb 22, 2017
Merged
use -O3 with some optimizations disabled on sparc w/ gcc #62
alexcrichton
merged 1 commit into
rust-lang:rust-llvm-2016-10-29
from
binarycrusader:llvm-sparc
Feb 22, 2017
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A previous commit changed it so that rust's private copy of llvm was always built with -O0 on sparc, as initially that was the only option that produced a working compiler. After further investigation, it was discovered that applying -fno-delayed-branch and -fno-omit-frame-pointer was sufficient to avoid all of the code generation issues initially encountered while retaining -O3. Investigation with gcc upstream continues.
My apologies for the relatively quick followup pull request, but after experimenting with various compiler options today, I finally managed to narrow down the issue to two specific optimizations. This allows the restoration of -O3. I was able to build a full rust beta with these options in ~2 hours compared to ~9 hours it took with -O0, and I was able to bootstrap cargo nightly as well (0.18) and have built several crates and other programs. Thanks again for your patience. |
Nice find! |
TimNN
pushed a commit
that referenced
this pull request
Apr 17, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN
pushed a commit
that referenced
this pull request
Apr 23, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
arielb1
pushed a commit
that referenced
this pull request
Jun 27, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN
added a commit
that referenced
this pull request
Jul 20, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN
added a commit
that referenced
this pull request
Jul 20, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton
pushed a commit
that referenced
this pull request
Jul 30, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton
pushed a commit
that referenced
this pull request
Aug 4, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton
pushed a commit
that referenced
this pull request
Aug 15, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton
pushed a commit
that referenced
this pull request
Oct 10, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.