Skip to content

Commit 8a21e0f

Browse files
authored
[LoopIdiom] Strip dead check in processLoopMemSet (NFC) (#141100)
1 parent d1a6327 commit 8a21e0f

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
@@ -860,8 +860,6 @@ bool LoopIdiomRecognize::processLoopMemSet(MemSetInst *MSI,
860860
return false;
861861

862862
const SCEV *MemsetSizeSCEV = SE->getSCEV(MSI->getLength());
863-
if (!PointerStrideSCEV || !MemsetSizeSCEV)
864-
return false;
865863

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

0 commit comments

Comments
 (0)