mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose: remove unnecessary engine blob size check
This commit is contained in:
parent
2ec3019e04
commit
09d19c7c57
@ -5492,8 +5492,6 @@ aligned_unique_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
|
|||||||
currOffset = sizeof(RoseEngine);
|
currOffset = sizeof(RoseEngine);
|
||||||
}
|
}
|
||||||
|
|
||||||
UNUSED const size_t engineBlobSize = bc.engine_blob.size(); // test later
|
|
||||||
|
|
||||||
currOffset = ROUNDUP_CL(currOffset);
|
currOffset = ROUNDUP_CL(currOffset);
|
||||||
DEBUG_PRINTF("currOffset %u\n", currOffset);
|
DEBUG_PRINTF("currOffset %u\n", currOffset);
|
||||||
|
|
||||||
@ -5572,10 +5570,6 @@ aligned_unique_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
|
|||||||
// Copy in the engine blob.
|
// Copy in the engine blob.
|
||||||
bc.engine_blob.write_bytes(engine.get());
|
bc.engine_blob.write_bytes(engine.get());
|
||||||
|
|
||||||
// Safety check: we shouldn't have written anything to the engine blob
|
|
||||||
// after we copied it into the engine bytecode.
|
|
||||||
assert(bc.engine_blob.size() == engineBlobSize);
|
|
||||||
|
|
||||||
// Add a small write engine if appropriate.
|
// Add a small write engine if appropriate.
|
||||||
engine = addSmallWriteEngine(*this, move(engine));
|
engine = addSmallWriteEngine(*this, move(engine));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user