commit | 39ad568c62f5120faec29f69d3d614303a1f992d | [log] [tgz] |
---|---|---|
author | Manman Ren <mren@apple.com> | Wed Aug 08 00:51:41 2012 +0000 |
committer | Manman Ren <mren@apple.com> | Wed Aug 08 00:51:41 2012 +0000 |
tree | 4512b094b076453ca2fe06fa3a8a17fbe32f275b | |
parent | 130e603115129ec1a6b94550a15f7caea0cbf068 [diff] |
X86: enable CSE between CMP and SUB We perform the following: 1> Use SUB instead of CMP for i8,i16,i32 and i64 in ISel lowering. 2> Modify MachineCSE to correctly handle implicit defs. 3> Convert SUB back to CMP if possible at peephole. Removed pattern matching of (a>b) ? (a-b):0 and like, since they are handled by peephole now. rdar://11873276 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161462 91177308-0d34-0410-b5e6-96231b3b80d8