@@ -208,7 +208,7 @@ class ImplicitNullChecks : public MachineFunctionPass {
208
208
209
209
// / Return true if \p FaultingMI can be hoisted from after the
210
210
// / instructions in \p InstsSeenSoFar to before them. Set \p Dependence to a
211
- // / non-null value if we also need to (and legally can) hoist a depedency .
211
+ // / non-null value if we also need to (and legally can) hoist a dependency .
212
212
bool canHoistInst (MachineInstr *FaultingMI,
213
213
ArrayRef<MachineInstr *> InstsSeenSoFar,
214
214
MachineBasicBlock *NullSucc, MachineInstr *&Dependence);
@@ -281,12 +281,12 @@ bool ImplicitNullChecks::canReorder(const MachineInstr *A,
281
281
// between A and B here -- for instance, we should not be dealing with heap
282
282
// load-store dependencies here.
283
283
284
- for (auto MOA : A->operands ()) {
284
+ for (const auto & MOA : A->operands ()) {
285
285
if (!(MOA.isReg () && MOA.getReg ()))
286
286
continue ;
287
287
288
288
Register RegA = MOA.getReg ();
289
- for (auto MOB : B->operands ()) {
289
+ for (const auto & MOB : B->operands ()) {
290
290
if (!(MOB.isReg () && MOB.getReg ()))
291
291
continue ;
292
292
@@ -413,7 +413,7 @@ ImplicitNullChecks::isSuitableMemoryOp(const MachineInstr &MI,
413
413
414
414
bool ImplicitNullChecks::canDependenceHoistingClobberLiveIns (
415
415
MachineInstr *DependenceMI, MachineBasicBlock *NullSucc) {
416
- for (auto &DependenceMO : DependenceMI->operands ()) {
416
+ for (const auto &DependenceMO : DependenceMI->operands ()) {
417
417
if (!(DependenceMO.isReg () && DependenceMO.getReg ()))
418
418
continue ;
419
419
0 commit comments