Remove Pre-Existing Repcode Check

This commit is contained in:
W. Felix Handte
2018-06-13 14:58:36 -04:00
parent 3b82a23a35
commit 2e93736a77
-6
View File
@@ -549,12 +549,6 @@ size_t ZSTD_compressBlock_lazy_generic(
base + repIndex;
/* check repCode */
if ((offset_1>0) & (MEM_read32(ip+1) == MEM_read32(ip+1 - offset_1))) {
/* repcode : we take it */
matchLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4;
if (depth==0) goto _storeSequence;
}
if (dictMode == ZSTD_dictMatchState
&& ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */)
&& (MEM_read32(repMatch) == MEM_read32(ip+1)) ) {