Make LoopDeletion work on loops with multiple edges, as long as the incoming
authorCameron Zwarich <zwarich@apple.com>
Tue, 22 Feb 2011 22:25:39 +0000 (22:25 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 22 Feb 2011 22:25:39 +0000 (22:25 +0000)
commitc4f3d51e12390f39f314451d868350e2a11a52b6
treecb8168bf39a610b9b09f193f4176db00228b33b2
parent00743c2218ff3f0f4edce972e2d88893a19e6ef8
Make LoopDeletion work on loops with multiple edges, as long as the incoming
values from all of the loop's exiting blocks are equal. Patch by Andrew Clinton.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126253 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopDeletion.cpp
test/Transforms/LoopDeletion/multiple-exits.ll [new file with mode: 0644]