
Episode 124: Vectorizing std::views::filter
Algorithms + Data Structures = Programs
00:00
The Loop Optimizer's Remarks
The reason that we're doing a memset operation here is because this is What we're looking to study? How Loop optimizers view this code. This inner loop It sort of getting gets merged with the outer loop and Because we don't know How many you know elements we're gonna filter out in between each one it does sort of throw off the compiler's ability to figure out The trip count for this loop. That is what ends up inhibiting vectorization.
Transcript
Play full episode