diff options
| author | bors <bors@rust-lang.org> | 2021-03-10 14:03:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-10 14:03:00 +0000 |
| commit | 5fe790e3c40710ecb95ddaadb98b59a3bb4f8326 (patch) | |
| tree | 85393bce32f8f4f6ea0478ac44e0e8fa02ccabd4 /src/test/codegen/loop.rs | |
| parent | a4d9624242df6bfe6c0a298867dd2bd527263424 (diff) | |
| parent | 0517acd54353869b2fbfc50af61ea7bd1fd309e0 (diff) | |
| download | rust-5fe790e3c40710ecb95ddaadb98b59a3bb4f8326.tar.gz rust-5fe790e3c40710ecb95ddaadb98b59a3bb4f8326.zip | |
Auto merge of #82884 - nagisa:nagisa/remove-most-of-sideeffect-inserts, r=nikic
Remove the -Zinsert-sideeffect
This removes all of the code we had in place to work-around LLVM's
handling of forward progress. From this removal excluded is a workaround
where we'd insert a `sideeffect` into clearly infinite loops such as
`loop {}`. This code remains conditionally effective when the LLVM
version is earlier than 12.0, which fixed the forward progress related
miscompilations at their root.
Diffstat (limited to 'src/test/codegen/loop.rs')
| -rw-r--r-- | src/test/codegen/loop.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/codegen/loop.rs b/src/test/codegen/loop.rs deleted file mode 100644 index e54298eed05..00000000000 --- a/src/test/codegen/loop.rs +++ /dev/null @@ -1,15 +0,0 @@ -// compile-flags: -C opt-level=3 - -#![crate_type = "lib"] - -// CHECK-LABEL: @check_loop -#[no_mangle] -pub fn check_loop() -> u8 { - // CHECK-NOT: unreachable - call_looper() -} - -#[no_mangle] -fn call_looper() -> ! { - loop {} -} |
