LoopPass: Simplify the API for adding a new loop. NFC
authorJustin Bogner <mail@justinbogner.com>
Thu, 22 Oct 2015 21:21:32 +0000 (21:21 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 22 Oct 2015 21:21:32 +0000 (21:21 +0000)
commitca9d3aa064061bc7f3fc7d31bd77163024c7d3c7
tree6ac7a004634f2d364e0d243b0f1f8b4a254ee7fb
parentf4a0ff09a8ebffd2ebaaa11d45e40a684e8ed018
LoopPass: Simplify the API for adding a new loop. NFC

The insertLoop() API is only used to add new loops, and has confusing
ownership semantics. Simplify it by replacing it with addLoop().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251064 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopPass.h
lib/Analysis/LoopPass.cpp
lib/Transforms/Scalar/LoopUnswitch.cpp