[CallSiteSplitting] Pass list of (BB, Conditions) pairs to splitCallSite.
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 16 Jan 2018 22:13:15 +0000 (22:13 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 16 Jan 2018 22:13:15 +0000 (22:13 +0000)
commitc6c89bffdc7cc238aa900f8f79ffc61f612e3d63
tree19804e5c46d2d829c3fb7451c7ea6e7b9d639150
parent3c66e2c541d579e0e9a5265d9388611137ac0e3a
[CallSiteSplitting] Pass list of (BB, Conditions) pairs to splitCallSite.

This removes some duplication from splitCallSite and makes it easier to
add additional code dealing with each predecessor. It also allows us to
split for more than 2 predecessors, although that is not enabled for
now.

Reviewers: junbuml, mcrosier, davidxl, davide

Reviewed By: junbuml

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

llvm-svn: 322599
llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp
llvm/test/Transforms/CallSiteSplitting/callsite-no-or-structure.ll
llvm/test/Transforms/CallSiteSplitting/callsite-split-debug.ll
llvm/test/Transforms/CallSiteSplitting/callsite-split-or-phi.ll
llvm/test/Transforms/CallSiteSplitting/callsite-split.ll