commit | 32a81a3f6d75c5343e7df65ce5d228f2128ca943 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Jun 24 14:31:06 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Jun 24 14:31:06 2009 +0000 |
tree | fa4c4d4b3387abafbb90850cc3f08cc49b96109f | |
parent | cd58c5940cfe87030aeaaa49ef56ed2797b35baa [diff] |
When inserting code into a loop preheader, insert it before the terminator, instead of after the last phi. This fixes a bug exposed by ScalarEvolution analyzing more kinds of loops. This fixes PR4436. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74072 91177308-0d34-0410-b5e6-96231b3b80d8