* Sink 4 duplicates of edge threading validity checks and DOUT prints into
commit5b1d782a89600df9a0f91ef0e1f1b386c0ce76a4
authorChris Lattner <sabre@nondot.org>
Mon, 4 May 2009 02:28:08 +0000 (4 02:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 4 May 2009 02:28:08 +0000 (4 02:28 +0000)
tree68ff167645b15bd8092f23662d9ef8ad911e169a
parent7ff9f612e1baaf1da3d5a663d6d013ac140487c8
* Sink 4 duplicates of edge threading validity checks and DOUT prints into
  ThreadEdge directly.  This shares the code, but is just a refactoring.
* Make JumpThreading compute the set of loop headers and avoid threading
  across them.  This prevents jump threading from forming irreducible
  loops (goodness) but also prevents it from threading in other cases that
  are beneficial (see the comment above FindFunctionBackedges).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/no-irreducible-loops.ll [new file with mode: 0644]