| commit | 485296d1e85510de2b5df8a5c652fd0abeb5db06 | [log] [tgz] |
|---|---|---|
| author | Preston Gurd <preston.gurd@intel.com> | Mon Mar 04 18:13:57 2013 +0000 |
| committer | Preston Gurd <preston.gurd@intel.com> | Mon Mar 04 18:13:57 2013 +0000 |
| tree | 37157fc9c401587e8556ae890caf95a6b1ec83fa | |
| parent | 6972f6d3c7c2960df6a0720515cfa7c6846903ed [diff] |
Bypass Slow Divides * Only apply divide bypass optimization when not optimizing for size. * Fixed bug caused by constant for 0 value of type Int32, used dividend type to generate the constant instead. * For atom x86-64 apply the divide bypass to use 16-bit divides instead of 64-bit divides when operand values are small enough. * Added lit tests for 64-bit divide bypass. Patch by Tyler Nowicki! llvm-svn: 176442