1
Fork 0

Rename InstCombine to InstSimplify

This commit is contained in:
Ben Kimock 2023-05-06 23:20:58 -04:00
parent a77c552485
commit ff855547f4
35 changed files with 100 additions and 100 deletions

View file

@ -278,7 +278,7 @@ impl<'a, 'tcx> CfgSimplifier<'a, 'tcx> {
}
}
pub fn combine_duplicate_switch_targets(terminator: &mut Terminator<'_>) {
pub fn simplify_duplicate_switch_targets(terminator: &mut Terminator<'_>) {
if let TerminatorKind::SwitchInt { targets, .. } = &mut terminator.kind {
let otherwise = targets.otherwise();
if targets.iter().any(|t| t.1 == otherwise) {
@ -310,7 +310,7 @@ pub fn remove_duplicate_unreachable_blocks<'tcx>(tcx: TyCtxt<'tcx>, body: &mut B
}
}
combine_duplicate_switch_targets(terminator);
simplify_duplicate_switch_targets(terminator);
self.super_terminator(terminator, location);
}