File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -573,16 +573,12 @@ getPushOrLibCallsSavedInfo(const MachineFunction &MF,
573
573
// `QC.CM.PUSH(FP)`. In these cases, prioritise the CFI info that points
574
574
// to the versions saved by `QC.C.MIENTER(.NEST)` which is what FP
575
575
// unwinding would use.
576
- const auto *FII = llvm::find_if (FixedCSRFIQCIInterruptMap, [&](auto P) {
577
- return P.first == CS.getReg ();
578
- });
579
- if (FII != std::end (FixedCSRFIQCIInterruptMap))
576
+ if (llvm::is_contained (llvm::make_first_range (FixedCSRFIQCIInterruptMap),
577
+ CS.getReg ()))
580
578
continue ;
581
579
}
582
580
583
- const auto *FII = llvm::find_if (
584
- FixedCSRFIMap, [&](MCPhysReg P) { return P == CS.getReg (); });
585
- if (FII != std::end (FixedCSRFIMap))
581
+ if (llvm::is_contained (FixedCSRFIMap, CS.getReg ()))
586
582
PushOrLibCallsCSI.push_back (CS);
587
583
}
588
584
@@ -599,10 +595,8 @@ getQCISavedInfo(const MachineFunction &MF,
599
595
return QCIInterruptCSI;
600
596
601
597
for (const auto &CS : CSI) {
602
- const auto *FII = llvm::find_if (FixedCSRFIQCIInterruptMap, [&](auto P) {
603
- return P.first == CS.getReg ();
604
- });
605
- if (FII != std::end (FixedCSRFIQCIInterruptMap))
598
+ if (llvm::is_contained (llvm::make_first_range (FixedCSRFIQCIInterruptMap),
599
+ CS.getReg ()))
606
600
QCIInterruptCSI.push_back (CS);
607
601
}
608
602
You can’t perform that action at this time.
0 commit comments