| commit | e0763c7472562c562d09a8c33164aa8ecb9096e7 | [log] [tgz] |
|---|---|---|
| author | Manman Ren <mren@apple.com> | Fri Jun 15 21:32:12 2012 +0000 |
| committer | Manman Ren <mren@apple.com> | Fri Jun 15 21:32:12 2012 +0000 |
| tree | 3b148fbef911ccd416e85f97e2bfafe0772da684 | |
| parent | 523af827de101ea6cc30e42e54e4067434392695 [diff] |
ARM: optimization for sub+abs. This patch will optimize abs(x-y) FROM sub, movs, rsbmi TO subs, rsbmi For abs, we will use cmp instead of movs. This is necessary because we already have an existing peephole pass which optimizes away cmp following sub. rdar: 11633193 llvm-svn: 158551