ARM: Remove unnecessary use_empty check (#137338)

The previous statement removed all uses.
This commit is contained in:
Matt Arsenault
2025-04-25 17:34:31 +02:00
committed by GitHub
parent 50a767add1
commit 6b3289faeb

View File

@@ -1099,8 +1099,7 @@ bool MVEGatherScatterLowering::optimiseOffsets(Value *Offsets, BasicBlock *BB,
// The instruction has now been "absorbed" into the phi value
Offs->replaceAllUsesWith(NewPhi);
if (Offs->use_empty())
Offs->eraseFromParent();
Offs->eraseFromParent();
// Clean up the old increment in case it's unused because we built a new
// one
if (IncInstruction->use_empty())