]> git.lizzy.rs Git - rust.git/commit
Enable UnreachablePropagation under mir-opt-level >= 2
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>
Tue, 26 Jul 2022 13:15:07 +0000 (15:15 +0200)
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>
Sun, 21 Aug 2022 19:15:28 +0000 (21:15 +0200)
commitbc79557311f068cbd97e77507797d912dc637180
treed9f30f31ba95fbcbbc0a8d00de0eb1d89b383aeb
parenteafab660964bcd1e2c8b19cc2021cc5c7fee6c38
Enable UnreachablePropagation under mir-opt-level >= 2

It was disabled because of pathological behaviour of LLVM in some
benchmarks. As of #77680, this has been fixed. The problem there was
that it caused pessimizations in some cases. These have now been fixed
as well.
compiler/rustc_mir_transform/src/unreachable_prop.rs