Use the range variant of find instead of unpacking begin/end
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Aug 2016 22:21:41 +0000 (22:21 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Aug 2016 22:21:41 +0000 (22:21 +0000)
commit0d955d0bf5cbbd50061309ad2c08c0dcf8f62039
tree19991ceb4f16b4e3ce06fe2c39304d27a93b8b7b
parent332b3b22109e9c0d84456888150c0a30f378f984
Use the range variant of find instead of unpacking begin/end

If the result of the find is only used to compare against end(), just
use is_contained instead.

No functionality change is intended.

llvm-svn: 278433
78 files changed:
llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
llvm/include/llvm/ADT/PriorityQueue.h
llvm/include/llvm/ADT/SetVector.h
llvm/include/llvm/Analysis/LoopInfo.h
llvm/include/llvm/Analysis/LoopInfoImpl.h
llvm/include/llvm/CodeGen/LiveVariables.h
llvm/include/llvm/CodeGen/MachineScheduler.h
llvm/include/llvm/CodeGen/PBQP/Graph.h
llvm/include/llvm/IR/InstrTypes.h
llvm/include/llvm/MC/MCAssembler.h
llvm/include/llvm/Support/GenericDomTree.h
llvm/lib/Analysis/EHPersonalities.cpp
llvm/lib/Analysis/GlobalsModRef.cpp
llvm/lib/Analysis/LazyCallGraph.cpp
llvm/lib/Analysis/PHITransAddr.cpp
llvm/lib/CodeGen/AllocationOrder.cpp
llvm/lib/CodeGen/AllocationOrder.h
llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
llvm/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/CodeGen/LatencyPriorityQueue.cpp
llvm/lib/CodeGen/LiveIntervalUnion.cpp
llvm/lib/CodeGen/MachineBasicBlock.cpp
llvm/lib/CodeGen/MachineBlockPlacement.cpp
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/lib/CodeGen/MachineLICM.cpp
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/lib/CodeGen/TailDuplicator.cpp
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/lib/CodeGen/TargetRegisterInfo.cpp
llvm/lib/IR/LegacyPassManager.cpp
llvm/lib/IR/PassRegistry.cpp
llvm/lib/Option/OptTable.cpp
llvm/lib/Support/CommandLine.cpp
llvm/lib/Support/YAMLParser.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/lib/Target/ARM/ARMFrameLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
llvm/lib/Target/Hexagon/HexagonBitSimplify.cpp
llvm/lib/Target/Hexagon/HexagonMachineScheduler.h
llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
llvm/lib/Target/Mips/MipsConstantIslandPass.cpp
llvm/lib/Target/NVPTX/NVPTXUtilities.cpp
llvm/lib/Target/Sparc/LeonPasses.cpp [changed mode: 0755->0644]
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
llvm/lib/Transforms/Utils/Evaluator.cpp
llvm/lib/Transforms/Utils/LCSSA.cpp
llvm/lib/Transforms/Utils/SSAUpdater.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/tools/bugpoint/CrashDebugger.cpp
llvm/tools/dsymutil/MachODebugMapParser.cpp
llvm/tools/llvm-ar/llvm-ar.cpp
llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h
llvm/unittests/Support/Path.cpp
llvm/unittests/Support/ThreadPool.cpp
llvm/utils/TableGen/AsmMatcherEmitter.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenSchedule.cpp
llvm/utils/TableGen/CodeGenTarget.h
llvm/utils/TableGen/SubtargetEmitter.cpp