commit | 85669637139089eaed8def1583ac04266c9654e2 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Thu Feb 25 06:57:05 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Thu Feb 25 06:57:05 2010 +0000 |
tree | 9179b71a2387b88fd18bfb147114734c0c7d0ccc | |
parent | a5028a64634f995630e93390c5c23374a09a450f [diff] |
Make LoopSimplify change conditional branches in loop exiting blocks which branch on undef to branch on a boolean constant for the edge exiting the loop. This helps ScalarEvolution compute trip counts for loops. Teach ScalarEvolution to recognize single-value PHIs, when safe, and ForgetSymbolicName to forget such single-value PHI nodes as apprpriate in ForgetSymbolicName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97126 91177308-0d34-0410-b5e6-96231b3b80d8