Skip to content

Remove u8 cttz hack - #56855

Merged
bors merged 1 commit into
rust-lang:masterfrom
nikic:remove-cttz-hack
Dec 16, 2018
Merged

Remove u8 cttz hack#56855
bors merged 1 commit into
rust-lang:masterfrom
nikic:remove-cttz-hack

Conversation

@nikic

Copy link
Copy Markdown
Contributor

This issue has since been fixed in LLVM: llvm-mirror/llvm@1886c8e

Furthermore this code doesn't actually work, because the 8 literal does not match the $BITS provided from the macro invocation, so effectively this was just dead code. Ref #43024.

What LLVM does is still not ideal for CPUs that only have bsf but not tzcnt, will create a patch for that later.

r? @nagisa

This issue has since been fixed in LLVM:
llvm-mirror/llvm@1886c8e
Furthermore this doesn't actually work, because the "8" literal does
not match the $BITS provided from the macro invocation, so effectively
this code was not being used anyway...
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 15, 2018
@nagisa

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Dec 15, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit c0ed771 has been approved by nagisa

@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 Dec 15, 2018
@alexcrichton

Copy link
Copy Markdown
Member

@bors: rollup

@CentrilCentril mentioned this pull request Dec 16, 2018
Centril added a commit to Centril/rust that referenced this pull request Dec 16, 2018
Remove u8 cttz hack
This issue has since been fixed in LLVM: llvm-mirror/llvm@1886c8e
Furthermore this code doesn't actually work, because the 8 literal does not match the $BITS provided from the macro invocation, so effectively this was just dead code. Ref rust-lang#43024.
What LLVM does is still not ideal for CPUs that only have bsf but not tzcnt, will create a patch for that later.
r? @nagisa
@CentrilCentril mentioned this pull request Dec 16, 2018
bors added a commit that referenced this pull request Dec 16, 2018
Rollup of 20 pull requests
Successful merges:
- #53506 (Documentation for impl From for AtomicBool and other Atomic types)
- #56343 (Remove not used mod)
- #56439 (Clearer error message for dead assign)
- #56640 (Add FreeBSD unsigned char platforms to std::os::raw)
- #56648 (Fix BTreeMap UB)
- #56672 (Document time of back operations of a Linked List)
- #56706 (Make `const unsafe fn` bodies `unsafe`)
- #56742 (infer: remove Box from a returned Iterator)
- #56761 (Suggest using `.display()` when trying to print a `Path`)
- #56781 (Update LLVM submodule)
- #56789 (rustc: Add an unstable `simd_select_bitmask` intrinsic)
- #56790 (Make RValue::Discriminant a normal Shallow read)
- #56793 (rustdoc: look for comments when scraping attributes/crates from doctests)
- #56826 (rustc: Add the `cmpxchg16b` target feature on x86/x86_64)
- #56832 (std: Use `rustc_demangle` from crates.io)
- #56844 (Improve CSS rule)
- #56850 (Fixed issue with using `Self` ctor in typedefs)
- #56855 (Remove u8 cttz hack)
- #56857 (Fix a small mistake regarding NaNs in a deprecation message)
- #56858 (Fix doc of `std::fs::canonicalize`)
Failed merges:
- #56741 (treat ref-to-raw cast like a reborrow: do a special kind of retag)
r? @ghost
@bors
bors merged commit c0ed771 into rust-lang:masterDec 16, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants

@nikic@nagisa@bors@alexcrichton@rust-highfive