llvm-project
c255e3df - [LoopIdiomVectorize] Test all needles when vectorising find_first_of loops. (#179298)

Commit
60 days ago
[LoopIdiomVectorize] Test all needles when vectorising find_first_of loops. (#179298) Fixes #179187 - as described in the issue, the current FindFirstByte transformation in LoopIdiomVectorizePass will incorrectly early-exit as soon as a needle matching a search element is found, even if a previous search element could match a subsequent needle. This patch ensures all needles are tested before we return a matching search element.
Author
Parents
Loading