[NFC][LoopIdiom] Make for loops more readable
authorDawid Jurczak <dawid_jurek@vp.pl>
Thu, 21 Oct 2021 10:07:07 +0000 (12:07 +0200)
committerDawid Jurczak <dawid_jurek@vp.pl>
Thu, 21 Oct 2021 10:17:44 +0000 (12:17 +0200)
commit9ba5bb43099db70031e0df6a438e7cb56fb05540
treede3d4c4c34b5113648772e2d0d19916c75f17a7f
parent05a2d1766864f60210d8f337a7ea709fa0707b53
[NFC][LoopIdiom] Make for loops more readable

Patch simplifies for loops in LIR following LLVM guidelines: https://llvm.org/docs/CodingStandards.html#use-range-based-for-loops-wherever-possible.

Differential Revision: https://reviews.llvm.org/D112077
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp