make "trivial" unswitching significantly more general. It can now handle
authorChris Lattner <sabre@nondot.org>
Wed, 15 Feb 2006 22:03:36 +0000 (22:03 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Feb 2006 22:03:36 +0000 (22:03 +0000)
commit4e1323969c4afa60cd6675cbbaade90afe7e6632
tree539ee1b42d923a27495c860e75154da5e61e0d7f
parent74d0aa9a4b1f5e021d2ce851a7af344e9b4ebb23
make "trivial" unswitching significantly more general.  It can now handle
this for example:

  for (j = 0; j < N; ++j) {     // trivial unswitch
    if (C)
      P[i+j] = 0;
  }

turning it into the obvious code without bothering to duplicate an empty loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26220 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp