]> granicus.if.org Git - llvm/commit
[Utils] Cleanup similar cases to MergeBlockIntoPredecessor.
authorAlina Sbirlea <asbirlea@google.com>
Wed, 16 Oct 2019 22:23:20 +0000 (22:23 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Wed, 16 Oct 2019 22:23:20 +0000 (22:23 +0000)
commitf5f2c97ffa8c6839c440f18f99e0c18e6179eb6f
tree4d39588147aca961c15d301f28f2aaacd0fa0d6a
parent19cf7f75582e2b40d3098af929fd6e5825ebf9c4
[Utils] Cleanup similar cases to MergeBlockIntoPredecessor.

Summary:
There are two cases where a block is merged into its predecessor and the
MergeBlockIntoPredecessor API is not used. Update the API so it can be
reused in the other cases, in order to avoid code duplication.

Cleanup motivated by D68659.

Reviewers: chandlerc, sanjoy.google, george.burgess.iv

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68670

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375050 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/BasicBlockUtils.h
lib/Transforms/Scalar/LoopUnswitch.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
lib/Transforms/Utils/LoopRotationUtils.cpp