| commit | 1be131ba275b33e674d09fc84a5ae5f4f27c8e15 | [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 | 6b33a47ea0287c903e15ccbe3583859a54a1cea4 | |
| parent | 3b9a4428416566bca21fd43cfbaeeb566465b5d4 [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 llvm-svn: 161462