Skip to content

Add cg_clif as optional codegen backend - #77975

Merged
bors merged 1724 commits into
rust-lang:masterfrom
bjorn3:cg_clif_subtree3
Oct 26, 2020
Merged

Add cg_clif as optional codegen backend#77975
bors merged 1724 commits into
rust-lang:masterfrom
bjorn3:cg_clif_subtree3

Conversation

@bjorn3

Copy link
Copy Markdown
Member

Rustc_codegen_cranelift is an alternative codegen backend for rustc based on Cranelift. It has the potential to improve compilation times in debug mode. In my experience the compile time improvements over debug mode LLVM for a clean build are about 20-30% in most cases.

This PR adds cg_clif as optional codegen backend. By default it is only enabled for ./x.py check. It can be enabled for ./x.py build too by adding cranelift to the rust.codegen-backends array in config.toml.

MCP: rust-lang/compiler-team#270

r? @Mark-Simulacrum

bjorn3and others added 30 commits June 16, 2020 11:02
The previous translation was wrong for signed 128bit comparisions
This fixes several libcore tests
Assignments are no longer used to implicitly cast between &mut T and &T
…#1054)
* Longer README about how to use this instead of `cargo run`
Resolvesrust-lang#1052.
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 26, 2020
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup=never p=5

@bors

bors commented Oct 26, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit ac4f7de has been approved by Mark-Simulacrum

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 26, 2020
@bors

bors commented Oct 26, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit ac4f7de with merge 35debd4...

@bors

bors commented Oct 26, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing 35debd4 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Oct 26, 2020
@bors
bors merged commit 35debd4 into rust-lang:masterOct 26, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 26, 2020
@bjorn3
bjorn3 deleted the cg_clif_subtree3 branch October 26, 2020 18:51
This was referenced Oct 26, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Nov 3, 2020
…=jyn514
Sync rustc_codegen_cranelift
This fixes bootstrapping of rustc using cg_clif again. It regressed a while before rust-lang#77975 got merged.
Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/743
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Nov 3, 2020
…=jyn514
Sync rustc_codegen_cranelift
This fixes bootstrapping of rustc using cg_clif again. It regressed a while before rust-lang#77975 got merged.
Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/743
@jonas-schievink

Copy link
Copy Markdown
Contributor

I think this has broken -Cpasses=list, which is now empty, as well as the LLVM version output in rustc -Vv, which is now missing

@bjorn3

Copy link
Copy Markdown
MemberAuthor

Oops. I used cfg!(llvm) instead of cfg!(feature = "llvm") for those.

@bjorn3

Copy link
Copy Markdown
MemberAuthor

Opened #80981

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 14, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 14, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 14, 2021
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Jan 14, 2021
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Jan 14, 2021
@LeSeulArtichautLeSeulArtichaut added the A-cranelift Things relevant to the [future] cranelift backend label Jul 18, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-craneliftThings relevant to the [future] cranelift backendmerged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

15 participants

@bjorn3@Mark-Simulacrum@est31@bors@jonas-schievink@rust-highfive@LeSeulArtichaut@rustbot@vi@spastorino@Veetaha@craigmayhew@CohenArthur@mbrubeck@l4l