File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,9 @@ bool SVEIntrinsicOpts::optimizePredicateStore(Instruction *I) {
328
328
Builder.CreateStore (BitCast->getOperand (0 ), Store->getPointerOperand ());
329
329
330
330
Store->eraseFromParent ();
331
- if (IntrI->getNumUses () == 0 )
331
+ if (IntrI->use_empty () )
332
332
IntrI->eraseFromParent ();
333
- if (BitCast->getNumUses () == 0 )
333
+ if (BitCast->use_empty () )
334
334
BitCast->eraseFromParent ();
335
335
336
336
return true ;
@@ -386,9 +386,9 @@ bool SVEIntrinsicOpts::optimizePredicateLoad(Instruction *I) {
386
386
387
387
BitCast->replaceAllUsesWith (LoadPred);
388
388
BitCast->eraseFromParent ();
389
- if (IntrI->getNumUses () == 0 )
389
+ if (IntrI->use_empty () )
390
390
IntrI->eraseFromParent ();
391
- if (Load->getNumUses () == 0 )
391
+ if (Load->use_empty () )
392
392
Load->eraseFromParent ();
393
393
394
394
return true ;
You can’t perform that action at this time.
0 commit comments