Convert a bunch of loops to foreach. NFC.
authorPete Cooper <peter_cooper@apple.com>
Thu, 6 Aug 2015 20:22:46 +0000 (20:22 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 6 Aug 2015 20:22:46 +0000 (20:22 +0000)
commitbe21eab7ac6d66d763bedc3a5955d1eaadd5f62d
treeb2487cb2441e734a86ba4ec2a65fa15349e49b18
parent4752eae71b9d816713cd45c19319fa4bd21bde2c
Convert a bunch of loops to foreach.  NFC.

After r244074, we now have a successors() method to iterate over
all the successors of a TerminatorInst.  This commit changes a bunch
of eligible loops to use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244260 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Analysis/ScalarEvolution.cpp
lib/IR/BasicBlock.cpp
lib/Target/ARM/ARMFastISel.cpp
lib/Target/PowerPC/PPCFastISel.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Scalar/LoopRotation.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Scalar/StructurizeCFG.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/SimplifyCFG.cpp