Simplify code a bit, and fix bug CodeExtractor/2004-03-14-NoSwitchSupport.ll
authorChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 23:05:49 +0000 (23:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 23:05:49 +0000 (23:05 +0000)
commit12f390e9c03d5439fd84c26d7cbd451cda80601a
tree27fed1f7032b874b867d7bb4eb5b5cf7de301a84
parent0e06674287b15696f66a65f20f2ba99137b29213
Simplify code a bit, and fix bug CodeExtractor/2004-03-14-NoSwitchSupport.ll

This also implements a two minor improvements:
  * Don't insert live-out stores IN the region, insert them on the code path
    that exits the region
  * If the region is exited to the same block from multiple paths, share the
    switch statement entry, live-out store code, and the basic block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12401 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CodeExtractor.cpp