- User Since
- Jan 7 2019, 12:15 PM (134 w, 3 d)
Jun 15 2021
When the loop idiom transformation processes a memset instruction in a loop, currently it only handles the memset with a compile-time constant size. The motivation of this work is to relax this limitation, so that a memset with a variable size in a loop may still be processed and promoted to a larger memset if it passes all the eligibility checks. Performance-wise, promoting the memset in a loop to a larger memset reduces the number of calls to memset; hence reducing the overall call overhead.
A similar technique may also apply to the memcpy with a variable size in a loop.
Jan 8 2019
Removed "if (SI)" as comment suggested. Thanks for the review!