commit | 45ed19499b8f7025d9acf91cc37fbf6ea63abc4f | [log] [tgz] |
---|---|---|
author | Manman Ren <mren@apple.com> | Wed Jul 11 22:51:44 2012 +0000 |
committer | Manman Ren <mren@apple.com> | Wed Jul 11 22:51:44 2012 +0000 |
tree | a62c7eab67e6865b2e5c3f3b2e898f419a352fab | |
parent | 1d82115042c81793cc3d807a8136f7f0f475f083 [diff] |
ARM: Fix optimizeCompare to correctly check safe condition. It is safe if CPSR is killed or re-defined. When we are done with the basic block, check whether CPSR is live-out. Do not optimize away cmp if CPSR is live-out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160090 91177308-0d34-0410-b5e6-96231b3b80d8