[llvm] 8a21e0f - [LoopIdiom] Strip dead check in processLoopMemSet (NFC) (#141100)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 12:10:39 PDT 2025
Author: Ramkumar Ramachandra
Date: 2025-05-27T21:10:35+02:00
New Revision: 8a21e0f4ff97f5564e8d134f841ae59ed2c5cdb0
URL: https://github.com/llvm/llvm-project/commit/8a21e0f4ff97f5564e8d134f841ae59ed2c5cdb0
DIFF: https://github.com/llvm/llvm-project/commit/8a21e0f4ff97f5564e8d134f841ae59ed2c5cdb0.diff
LOG: [LoopIdiom] Strip dead check in processLoopMemSet (NFC) (#141100)
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 0d5e0156b22be..33d2211a7ee03 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -860,8 +860,6 @@ bool LoopIdiomRecognize::processLoopMemSet(MemSetInst *MSI,
return false;
const SCEV *MemsetSizeSCEV = SE->getSCEV(MSI->getLength());
- if (!PointerStrideSCEV || !MemsetSizeSCEV)
- return false;
bool IsNegStride = false;
const bool IsConstantSize = isa<ConstantInt>(MSI->getLength());
More information about the llvm-commits
mailing list