Skip to content

Commit 98625d4

Browse files
committed
[LoopIdiom] Strip dead check in processLoopMemSet (NFC)
1 parent 4fa2c62 commit 98625d4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,6 @@ bool LoopIdiomRecognize::processLoopMemSet(MemSetInst *MSI,
867867

868868
const SCEV *PointerStrideSCEV = Ev->getOperand(1);
869869
const SCEV *MemsetSizeSCEV = SE->getSCEV(MSI->getLength());
870-
if (!PointerStrideSCEV || !MemsetSizeSCEV)
871-
return false;
872870

873871
bool IsNegStride = false;
874872
const bool IsConstantSize = isa<ConstantInt>(MSI->getLength());

0 commit comments

Comments
 (0)