https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82479
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmalcolm at gcc dot gnu.org
--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
FWIW, llvm appears to implement this within:
https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
(Matt Godbolt mentioned this in his recent CppCon talk:
https://youtu.be/bSkpMdDe4g4?t=2408 )