]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoBump thiserror from 1.0.10 to 1.0.11 (#894)
dependabot-preview[bot] [Mon, 17 Feb 2020 16:54:27 +0000 (17:54 +0100)]
Bump thiserror from 1.0.10 to 1.0.11 (#894)

Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.10...1.0.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoMerge pull request #896 from bjorn3/dependabot/cargo/cranelift-codegen-cd3d84e
dependabot-preview[bot] [Mon, 17 Feb 2020 06:32:54 +0000 (06:32 +0000)]
Merge pull request #896 from bjorn3/dependabot/cargo/cranelift-codegen-cd3d84e

4 years agoBump cranelift-codegen from `f1aa072` to `cd3d84e`
dependabot-preview[bot] [Mon, 17 Feb 2020 05:10:16 +0000 (05:10 +0000)]
Bump cranelift-codegen from `f1aa072` to `cd3d84e`

Bumps [cranelift-codegen](https://github.com/bytecodealliance/cranelift) from `f1aa072` to `cd3d84e`.
- [Release notes](https://github.com/bytecodealliance/cranelift/releases)
- [Commits](https://github.com/bytecodealliance/cranelift/compare/f1aa07265b3b25c1859f7184e92fd600316b4b25...cd3d84e580cc69876a93ea87ef12d45ee2942b2d)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoUpdate Cranelift and use the new ineg instruction
bjorn3 [Sat, 15 Feb 2020 10:59:38 +0000 (11:59 +0100)]
Update Cranelift and use the new ineg instruction

4 years agoUse archive_format for determining if gnu style archives should be emitted
bjorn3 [Fri, 14 Feb 2020 18:12:43 +0000 (19:12 +0100)]
Use archive_format for determining if gnu style archives should be emitted

Fixes #893

4 years agoUpdate dependencies
bjorn3 [Fri, 14 Feb 2020 17:37:28 +0000 (18:37 +0100)]
Update dependencies

4 years agoUpdate Cranelift for basic blocks
bjorn3 [Fri, 14 Feb 2020 17:23:29 +0000 (18:23 +0100)]
Update Cranelift for basic blocks

4 years agoRustup to rustc 1.43.0-nightly (5d04ce67f 2020-02-13)
bjorn3 [Fri, 14 Feb 2020 17:20:34 +0000 (18:20 +0100)]
Rustup to rustc 1.43.0-nightly (5d04ce67f 2020-02-13)

4 years agoUse TrapCode::UnreachableCodeReached in trap_unreachable
bjorn3 [Fri, 7 Feb 2020 20:38:30 +0000 (21:38 +0100)]
Use TrapCode::UnreachableCodeReached in trap_unreachable

4 years ago[OPT] Don't call monomorphize from clif_type
bjorn3 [Fri, 7 Feb 2020 19:27:37 +0000 (20:27 +0100)]
[OPT] Don't call monomorphize from clif_type

4 years agoRemove the sudo key from .travis.yml
bjorn3 [Fri, 7 Feb 2020 12:55:02 +0000 (13:55 +0100)]
Remove the sudo key from .travis.yml

It has been deprecated and doesn't have any effect anymore

4 years agoRustup to rustc 1.43.0-nightly (442ae7f04 2020-02-06)
bjorn3 [Fri, 7 Feb 2020 12:49:48 +0000 (13:49 +0100)]
Rustup to rustc 1.43.0-nightly (442ae7f04 2020-02-06)

4 years agoRevert "Use CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap:...
bjorn3 [Mon, 3 Feb 2020 20:36:36 +0000 (21:36 +0100)]
Revert "Use CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap::lookup_char_pos"

This reverts commit eb4fc45310c70513d73d893616cd6735465680ca.

It caused a panic while compiling simple-raytracer

4 years agoUse CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap::lookup_char_pos
bjorn3 [Mon, 3 Feb 2020 20:05:18 +0000 (21:05 +0100)]
Use CachingSourceMapView::byte_pos_to_line_and_col instead of SourceMap::lookup_char_pos

The former calculates byte offsets instead of char offsets. It is faster
to calculate byte offsets than char offsets. Also most DWARF producers
and consumers use byte offsets instead of char offsets.

4 years agoDon't mark unwind ebbs as cold
bjorn3 [Sat, 1 Feb 2020 15:47:35 +0000 (16:47 +0100)]
Don't mark unwind ebbs as cold

This fixes the code_layout optimization, as it would previously try to
move non-existing ebbs.

Fixes #877

4 years agoUpdate smallvec to 1.2.0
bjorn3 [Sat, 1 Feb 2020 11:35:45 +0000 (12:35 +0100)]
Update smallvec to 1.2.0

4 years agoRustup to rustc 1.42.0-nightly (cd1ef390e 2020-01-31)
bjorn3 [Sat, 1 Feb 2020 11:35:03 +0000 (12:35 +0100)]
Rustup to rustc 1.42.0-nightly (cd1ef390e 2020-01-31)

4 years agoUpdate thiserror
bjorn3 [Wed, 29 Jan 2020 10:32:59 +0000 (11:32 +0100)]
Update thiserror

4 years agoUpdate Cranelift
bjorn3 [Wed, 29 Jan 2020 10:31:17 +0000 (11:31 +0100)]
Update Cranelift

4 years agoRustup to rustc 1.42.0-nightly (3761dcd34 2020-01-28)
bjorn3 [Wed, 29 Jan 2020 10:21:29 +0000 (11:21 +0100)]
Rustup to rustc 1.42.0-nightly (3761dcd34 2020-01-28)

4 years agoMerge pull request #883 from bjorn3/dependabot/cargo/cranelift-codegen-9a578c1
dependabot-preview[bot] [Mon, 27 Jan 2020 08:07:20 +0000 (08:07 +0000)]
Merge pull request #883 from bjorn3/dependabot/cargo/cranelift-codegen-9a578c1

4 years agoBump cranelift-codegen from `93e3bc1` to `9a578c1`
dependabot-preview[bot] [Mon, 27 Jan 2020 05:09:35 +0000 (05:09 +0000)]
Bump cranelift-codegen from `93e3bc1` to `9a578c1`

Bumps [cranelift-codegen](https://github.com/bytecodealliance/cranelift) from `93e3bc1` to `9a578c1`.
- [Release notes](https://github.com/bytecodealliance/cranelift/releases)
- [Commits](https://github.com/bytecodealliance/cranelift/compare/93e3bc19985d0be2d0bfb7bcf990139c4a95358d...9a578c10924ce485a7b7e22dd5577ebc96538bb0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoDisable the code_layout optimization
bjorn3 [Sat, 25 Jan 2020 16:55:48 +0000 (17:55 +0100)]
Disable the code_layout optimization

When compiling libcore, it causes ebb params to be dropped for a certain function

4 years agoAdd #[cfg(debug_assertions)] to write_clif_file
bjorn3 [Sat, 25 Jan 2020 16:54:49 +0000 (17:54 +0100)]
Add #[cfg(debug_assertions)] to write_clif_file

This silences a warning in release mode

4 years agoUpdate compiler_builtins
bjorn3 [Sat, 25 Jan 2020 16:24:45 +0000 (17:24 +0100)]
Update compiler_builtins

4 years agoReplace unimplemented! with unreachable! when it will never be supported
bjorn3 [Sat, 25 Jan 2020 15:24:48 +0000 (16:24 +0100)]
Replace unimplemented! with unreachable! when it will never be supported

4 years agoFix correctness of optimization
bjorn3 [Sat, 25 Jan 2020 15:24:15 +0000 (16:24 +0100)]
Fix correctness of optimization

4 years agoAllow unsized types as function parameters
bjorn3 [Sat, 25 Jan 2020 15:23:54 +0000 (16:23 +0100)]
Allow unsized types as function parameters

4 years agoRemove outdated troubleshooting section
bjorn3 [Sat, 25 Jan 2020 11:28:22 +0000 (12:28 +0100)]
Remove outdated troubleshooting section

The nightly version is pinned since recently

4 years agoRustup to rustc 1.42.0-nightly (c2d141df5 2020-01-24)
bjorn3 [Sat, 25 Jan 2020 11:01:35 +0000 (12:01 +0100)]
Rustup to rustc 1.42.0-nightly (c2d141df5 2020-01-24)

4 years agoRe-introduce FnBox
bjorn3 [Wed, 22 Jan 2020 19:24:17 +0000 (20:24 +0100)]
Re-introduce FnBox

4 years agoImprove PlaceElem::Subslice handling
bjorn3 [Sat, 18 Jan 2020 09:23:51 +0000 (10:23 +0100)]
Improve PlaceElem::Subslice handling

4 years agoMake atomic instructions atomic using a global lock
bjorn3 [Sat, 18 Jan 2020 11:43:31 +0000 (12:43 +0100)]
Make atomic instructions atomic using a global lock

4 years agoWarn when using LTO
bjorn3 [Fri, 17 Jan 2020 19:33:27 +0000 (20:33 +0100)]
Warn when using LTO

4 years agoMake unused stack slots zero sized in stack2reg
bjorn3 [Sat, 18 Jan 2020 17:31:01 +0000 (18:31 +0100)]
Make unused stack slots zero sized in stack2reg

4 years agoDon't force static refs to const memory
bjorn3 [Fri, 17 Jan 2020 13:01:51 +0000 (14:01 +0100)]
Don't force static refs to const memory

4 years agoAllow more types in CValue::const_val
bjorn3 [Sun, 1 Dec 2019 16:35:40 +0000 (17:35 +0100)]
Allow more types in CValue::const_val

4 years agoRustup to rustc 1.42.0-nightly (689fca01c 2020-01-17)
bjorn3 [Sat, 18 Jan 2020 18:14:03 +0000 (19:14 +0100)]
Rustup to rustc 1.42.0-nightly (689fca01c 2020-01-17)

4 years agoUpdate dependencies
bjorn3 [Wed, 22 Jan 2020 17:09:00 +0000 (18:09 +0100)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Wed, 22 Jan 2020 17:04:11 +0000 (18:04 +0100)]
Update Cranelift

As basic blocks now work, they are enabled.

4 years agoMerge pull request #872 from bjorn3/dependabot/cargo/cranelift-codegen-062e984
dependabot-preview[bot] [Mon, 20 Jan 2020 06:35:05 +0000 (06:35 +0000)]
Merge pull request #872 from bjorn3/dependabot/cargo/cranelift-codegen-062e984

4 years agoBump cranelift-codegen from `3268b0d` to `062e984`
dependabot-preview[bot] [Mon, 20 Jan 2020 05:11:56 +0000 (05:11 +0000)]
Bump cranelift-codegen from `3268b0d` to `062e984`

Bumps [cranelift-codegen](https://github.com/bytecodealliance/cranelift) from `3268b0d` to `062e984`.
- [Release notes](https://github.com/bytecodealliance/cranelift/releases)
- [Commits](https://github.com/bytecodealliance/cranelift/compare/3268b0d11f6646b95e250d9f5eba22756434bcef...062e984cddb39bfe41f3abcb4653e76670960a69)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoCorrect commit message in rustup.sh
bjorn3 [Wed, 15 Jan 2020 19:20:30 +0000 (20:20 +0100)]
Correct commit message in rustup.sh

4 years agorustc 1.42.0-nightly (31dd4f4ac 2020-01-13)
bjorn3 [Wed, 15 Jan 2020 19:04:33 +0000 (20:04 +0100)]
rustc 1.42.0-nightly (31dd4f4ac 2020-01-13)

4 years agoAdd rustup script
bjorn3 [Wed, 15 Jan 2020 18:42:10 +0000 (19:42 +0100)]
Add rustup script

4 years agoDisplay warning when overriding default rustc version in cargo.sh
bjorn3 [Wed, 15 Jan 2020 17:40:24 +0000 (18:40 +0100)]
Display warning when overriding default rustc version in cargo.sh

4 years agoStore nightly snapshot in rust-toolchain file, and use it in cargo.sh
Andrew Chin [Wed, 15 Jan 2020 17:05:18 +0000 (12:05 -0500)]
Store nightly snapshot in rust-toolchain file, and use it in cargo.sh

The rust-toolchain file can also store an exact nightly snapshot
(instead of just "nightly"), so we can store whatever snapshot that
rustc_codegen_cranelift is known to work with.

This also lets us add a new feature to `cargo.sh` to let it use the
exact same nightly snapshot as cg_clif.  If there's a nightly compiler
mismatch, you get a confusing error message like:

    error: couldn't load codegen backend "librustc_codegen_cranelift.so":
    "librustc_driver-681e2b4f66c73d3e.so: cannot open
    shared object file: No such file or directory"

So doing this automatically in cargo.sh is useful.

4 years agoFix debug build
bjorn3 [Wed, 15 Jan 2020 12:18:21 +0000 (13:18 +0100)]
Fix debug build

4 years agoReduce the amount of calls to layout_of
bjorn3 [Wed, 15 Jan 2020 12:17:09 +0000 (13:17 +0100)]
Reduce the amount of calls to layout_of

4 years agoUse release mode instead of debug mode in the readme
bjorn3 [Wed, 15 Jan 2020 10:53:24 +0000 (11:53 +0100)]
Use release mode instead of debug mode in the readme

cc #865

4 years agoReduce visibility
bjorn3 [Tue, 14 Jan 2020 16:11:06 +0000 (17:11 +0100)]
Reduce visibility

4 years agoOptimize .debug_line generation
bjorn3 [Tue, 14 Jan 2020 15:11:23 +0000 (16:11 +0100)]
Optimize .debug_line generation

This reduces the amount of time spent in .debug_line generation by about 50%

Fixes #807

4 years agoUpdate gimli to 0.20.0
bjorn3 [Tue, 14 Jan 2020 13:19:43 +0000 (14:19 +0100)]
Update gimli to 0.20.0

4 years agoRemove some depencencies
bjorn3 [Tue, 14 Jan 2020 13:16:06 +0000 (14:16 +0100)]
Remove some depencencies

4 years agoUpdate Cranelift
bjorn3 [Tue, 14 Jan 2020 12:55:08 +0000 (13:55 +0100)]
Update Cranelift

4 years agoRustup to rustc 1.42.0-nightly (3ebcfa145 2020-01-12)
bjorn3 [Mon, 13 Jan 2020 20:38:46 +0000 (21:38 +0100)]
Rustup to rustc 1.42.0-nightly (3ebcfa145 2020-01-12)

4 years agoMove all cold code to the end of the function
bjorn3 [Sat, 11 Jan 2020 16:57:18 +0000 (17:57 +0100)]
Move all cold code to the end of the function

Fixes #836

Benchmark #1: simple-raytracer/raytracer_cg_clif
  Time (mean ± σ):      9.250 s ±  0.056 s    [User: 9.213 s, System: 0.015 s]
  Range (min … max):    9.151 s …  9.348 s    20 runs

Benchmark #2: simple-raytracer/raytracer_cg_clif_cold_separated
  Time (mean ± σ):      9.179 s ±  0.101 s    [User: 9.141 s, System: 0.016 s]
  Range (min … max):    9.070 s …  9.473 s    20 runs

Summary
  'simple-raytracer/raytracer_cg_clif_cold_separated' ran
    1.01 ± 0.01 times faster than 'simple-raytracer/raytracer_cg_clif'

4 years agoImplement `#[track_caller]`
bjorn3 [Sat, 11 Jan 2020 15:49:42 +0000 (16:49 +0100)]
Implement `#[track_caller]`

Fixes #848

4 years agoDon't panic on reported const eval errors
bjorn3 [Sat, 11 Jan 2020 13:20:55 +0000 (14:20 +0100)]
Don't panic on reported const eval errors

4 years agoFix PlaceElem::Subslice length computation
bjorn3 [Sat, 11 Jan 2020 13:15:24 +0000 (14:15 +0100)]
Fix PlaceElem::Subslice length computation

4 years agoFix build
bjorn3 [Sat, 11 Jan 2020 13:27:26 +0000 (14:27 +0100)]
Fix build

4 years agoImprove build time for build scripts in release mode
bjorn3 [Fri, 10 Jan 2020 13:21:45 +0000 (14:21 +0100)]
Improve build time for build scripts in release mode

4 years agoBetter self profiling integration
bjorn3 [Fri, 10 Jan 2020 13:15:14 +0000 (14:15 +0100)]
Better self profiling integration

4 years agoRemove faerie support
bjorn3 [Fri, 10 Jan 2020 12:30:21 +0000 (13:30 +0100)]
Remove faerie support

4 years agoUpdate Cranelift
bjorn3 [Fri, 10 Jan 2020 12:12:49 +0000 (13:12 +0100)]
Update Cranelift

4 years agoPrepare for basic blocks
bjorn3 [Fri, 10 Jan 2020 11:14:28 +0000 (12:14 +0100)]
Prepare for basic blocks

4 years agoDisable read feature of gimli
bjorn3 [Thu, 9 Jan 2020 16:59:59 +0000 (17:59 +0100)]
Disable read feature of gimli

4 years agoUpdate dependencies
bjorn3 [Thu, 9 Jan 2020 16:45:40 +0000 (17:45 +0100)]
Update dependencies

4 years agoUpdate Cranelift
bjorn3 [Thu, 9 Jan 2020 16:43:21 +0000 (17:43 +0100)]
Update Cranelift

4 years agoRustup to rustc 1.42.0-nightly (caa231d99 2020-01-08)
bjorn3 [Thu, 9 Jan 2020 16:43:10 +0000 (17:43 +0100)]
Rustup to rustc 1.42.0-nightly (caa231d99 2020-01-08)

4 years agoRustup to rustc 1.42.0-nightly (bc1571cc3 2020-01-05)
bjorn3 [Mon, 6 Jan 2020 19:11:03 +0000 (20:11 +0100)]
Rustup to rustc 1.42.0-nightly (bc1571cc3 2020-01-05)

4 years agoRevert "Use simd instructions for int and float simd intrinsics"
bjorn3 [Sat, 4 Jan 2020 17:27:00 +0000 (18:27 +0100)]
Revert "Use simd instructions for int and float simd intrinsics"

This reverts commit 5e984a32d9b8a381d0b7f192f4a915aac59f18db.

It was causing issues with vectors bigger than 128bit

4 years agoFix codegen of unimpl in simd_extract and unimpl simd_insert
bjorn3 [Sat, 4 Jan 2020 17:20:00 +0000 (18:20 +0100)]
Fix codegen of unimpl in simd_extract and unimpl simd_insert

4 years agoRe-use cranelift_codegen::ir::Function for every function
bjorn3 [Sat, 4 Jan 2020 16:58:38 +0000 (17:58 +0100)]
Re-use cranelift_codegen::ir::Function for every function

Fixes #844

4 years agoUse DUMMY_SP in less places
bjorn3 [Sat, 4 Jan 2020 16:49:00 +0000 (17:49 +0100)]
Use DUMMY_SP in less places

Fixes #845

4 years agoUse IndexVec for ebb_map
bjorn3 [Sat, 4 Jan 2020 12:23:42 +0000 (13:23 +0100)]
Use IndexVec for ebb_map

cc #745

4 years agoRemove faerie machO alignment workaround
bjorn3 [Sat, 4 Jan 2020 11:57:38 +0000 (12:57 +0100)]
Remove faerie machO alignment workaround

Fixes #738

4 years agoAdd two FIXME's
bjorn3 [Sat, 4 Jan 2020 11:33:39 +0000 (12:33 +0100)]
Add two FIXME's

4 years agoMerge pull request #853 from bjorn3/opt_stack2reg
bjorn3 [Sat, 4 Jan 2020 11:40:10 +0000 (12:40 +0100)]
Merge pull request #853 from bjorn3/opt_stack2reg

Add stack2reg optimization pass

4 years agoAdd documentation about the UB of the stack2reg optimization
bjorn3 [Sat, 4 Jan 2020 10:31:56 +0000 (11:31 +0100)]
Add documentation about the UB of the stack2reg optimization

4 years agoEnable incr comp in release mode
bjorn3 [Fri, 3 Jan 2020 20:30:56 +0000 (21:30 +0100)]
Enable incr comp in release mode

4 years agoDisable stack2reg opt when optimizations are disabled
bjorn3 [Tue, 31 Dec 2019 15:43:24 +0000 (16:43 +0100)]
Disable stack2reg opt when optimizations are disabled

4 years agoRevert some changes
bjorn3 [Tue, 31 Dec 2019 14:59:49 +0000 (15:59 +0100)]
Revert some changes

4 years agoFix some warnings
bjorn3 [Tue, 31 Dec 2019 14:36:29 +0000 (15:36 +0100)]
Fix some warnings

4 years agoDon't print debug messages in release mode
bjorn3 [Tue, 31 Dec 2019 14:26:58 +0000 (15:26 +0100)]
Don't print debug messages in release mode

4 years agoRemove unnecessary check from temporal_order
bjorn3 [Tue, 31 Dec 2019 11:25:23 +0000 (12:25 +0100)]
Remove unnecessary check from temporal_order

4 years agoSupport store to load forwarding for different types of the same size
bjorn3 [Mon, 30 Dec 2019 20:26:49 +0000 (21:26 +0100)]
Support store to load forwarding for different types of the same size

4 years agoFix potential_stores_for_load
bjorn3 [Mon, 30 Dec 2019 20:20:17 +0000 (21:20 +0100)]
Fix potential_stores_for_load

4 years agoReturn use domtree.dominates in temporal_order
bjorn3 [Mon, 30 Dec 2019 19:52:57 +0000 (20:52 +0100)]
Return use domtree.dominates in temporal_order

4 years agoAdd functions to remove loads stores etc
bjorn3 [Mon, 30 Dec 2019 19:25:34 +0000 (20:25 +0100)]
Add functions to remove loads stores etc

4 years agoExtract potential_stores_for_load and potential_loads_of_store functions
bjorn3 [Mon, 30 Dec 2019 19:02:32 +0000 (20:02 +0100)]
Extract potential_stores_for_load and potential_loads_of_store functions

4 years agoLet remove_unused_stack_addr_and_stack_load take OptimizeContext
bjorn3 [Sat, 28 Dec 2019 17:16:43 +0000 (18:16 +0100)]
Let remove_unused_stack_addr_and_stack_load take OptimizeContext

4 years agoAdd OptimizeContext
bjorn3 [Sat, 28 Dec 2019 17:07:51 +0000 (18:07 +0100)]
Add OptimizeContext

4 years agoRemove stack_store without following stack_load
bjorn3 [Sat, 28 Dec 2019 16:51:22 +0000 (17:51 +0100)]
Remove stack_store without following stack_load

4 years agoFix temporal_order argument order for store to load forwarding
bjorn3 [Sat, 28 Dec 2019 15:11:04 +0000 (16:11 +0100)]
Fix temporal_order argument order for store to load forwarding

4 years agoExtract temporal_order function
bjorn3 [Sat, 28 Dec 2019 14:52:42 +0000 (15:52 +0100)]
Extract temporal_order function

4 years agoFix compilation
bjorn3 [Sat, 28 Dec 2019 12:00:28 +0000 (13:00 +0100)]
Fix compilation

4 years agoCheck for cross-ebb temporal overlap between loads and stores
bjorn3 [Sat, 28 Dec 2019 11:41:03 +0000 (12:41 +0100)]
Check for cross-ebb temporal overlap between loads and stores

4 years agoRun dead stack_store removal after stack_store to stack_load forwarding
bjorn3 [Sat, 28 Dec 2019 10:36:00 +0000 (11:36 +0100)]
Run dead stack_store removal after stack_store to stack_load forwarding

4 years ago[WIP] Implement basic stack store to load forwarding
bjorn3 [Fri, 27 Dec 2019 20:13:27 +0000 (21:13 +0100)]
[WIP] Implement basic stack store to load forwarding