| commit | 4e1323969c4afa60cd6675cbbaade90afe7e6632 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Wed Feb 15 22:03:36 2006 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Wed Feb 15 22:03:36 2006 +0000 |
| tree | 539ee1b42d923a27495c860e75154da5e61e0d7f | |
| parent | 74d0aa9a4b1f5e021d2ce851a7af344e9b4ebb23 [diff] |
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