| commit | 08d5905bac168324ed5bebf80ee253dd5ec3fca6 | [log] [tgz] |
|---|---|---|
| author | Hans Wennborg <hans@hanshq.net> | Tue Dec 15 17:10:28 2015 +0000 |
| committer | Hans Wennborg <hans@hanshq.net> | Tue Dec 15 17:10:28 2015 +0000 |
| tree | f66ef0223aaf36c5e9d2aa444a5901c29758e8a0 | |
| parent | 0d10b2cf3c2d91e028d04b6cb297f1b6a20e1416 [diff] |
[X86] Smaller code for materializing 32-bit 1 and -1 constants "movl $-1, %eax" is 5 bytes, "xorl %eax, %eax; decl %eax" is 3 bytes. This commit makes LLVM use the latter when optimizing for size. Differential Revision: http://reviews.llvm.org/D14971 llvm-svn: 255656