-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is broken, and results in poor performance due to the undefined behaviour in the LLVM IR. LLVM's `mergefunc` is a *much* better way of doing this since it merges based on the equality of the bytecode. For example, consider `std::repr`. It generates different code per type, but is not included in the type bounds of generics. The `mergefunc` pass works for most of our code but currently hits an assert on libstd. It is receiving attention upstream so it will be ready soon, but I don't think removing this broken code should wait any longer. I've opened #9536 about enabling it by default. Closes #8651 Closes #3547 Closes #2537 Closes #6971 Closes #9222
- Loading branch information
1 parent
47f2e80
commit c3e4e06
Showing
9 changed files
with
21 additions
and
626 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.
c3e4e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at https://github.com/thestinger/rust/commit/c3e4e068416438e91e3e9809ee8553a764d8e26e
c3e4e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging thestinger/rust/type_use = c3e4e06 into auto
c3e4e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thestinger/rust/type_use = c3e4e06 merged ok, testing candidate = ae8a2ff
c3e4e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1721
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1724
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/830
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/830
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1739
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/830
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/830
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1739
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/830
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/831
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/911
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1724
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/830
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/831
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/1508
c3e4e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = ae8a2ff