Rename InstCombine to InstSimplify
This commit is contained in:
parent
a77c552485
commit
ff855547f4
35 changed files with 100 additions and 100 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue