diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-04-27 22:33:25 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-04-27 22:33:25 +0000 |
| commit | 32c2178ef3d7455b0d1f18f2f6d6c2e9546c2939 (patch) | |
| tree | 8bc8e307ed7a7d51abb52f1b3ba4a81954c96799 /llvm/docs/design_and_overview.rst | |
| parent | f5d6c74433220e444db44931429b9ee3ecbfd741 (diff) | |
| download | bcm5719-llvm-32c2178ef3d7455b0d1f18f2f6d6c2e9546c2939.tar.gz bcm5719-llvm-32c2178ef3d7455b0d1f18f2f6d6c2e9546c2939.zip | |
Add x86-specific DAG combine to simplify:
x == -y --> x+y == 0
x != -y --> x+y != 0
On x86, the generated code goes from
negl %esi
cmpl %esi, %edi
je .LBB0_2
to
addl %esi, %edi
je .L4
This case is correctly handled for ARM with "cmn".
Patch by Manman Ren.
rdar://11245199
PR12545
llvm-svn: 155739
Diffstat (limited to 'llvm/docs/design_and_overview.rst')
0 files changed, 0 insertions, 0 deletions

