1
Fork 0

Bump all mir_opt_level 2 to 3

This commit is contained in:
Santiago Pastorino 2021-03-03 18:56:00 -03:00
parent f3b8920d4b
commit 782c7b04cf
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
5 changed files with 7 additions and 7 deletions

View file

@ -1071,9 +1071,9 @@ impl<'mir, 'tcx> MutVisitor<'tcx> for ConstPropagator<'mir, 'tcx> {
fn visit_operand(&mut self, operand: &mut Operand<'tcx>, location: Location) {
self.super_operand(operand, location);
// Only const prop copies and moves on `mir_opt_level=2` as doing so
// Only const prop copies and moves on `mir_opt_level=3` as doing so
// currently slightly increases compile time in some cases.
if self.tcx.sess.mir_opt_level() >= 2 {
if self.tcx.sess.mir_opt_level() >= 3 {
self.propagate_operand(operand)
}
}