Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | refactor a blob of code out to a new 'FoldOrOfFCmps' function and | Chris Lattner | 2009-07-23 | 1 | -67/+70 | |
| | | | | | | simplify it. llvm-svn: 76866 | |||||
* | For real this time: PHI Def & Kill tracking added to PHIElimination. | Lang Hames | 2009-07-23 | 1 | -3/+5 | |
| | | | | llvm-svn: 76865 | |||||
* | Make some existing optimizations that would only trigger on scalars | Chris Lattner | 2009-07-23 | 1 | -2/+20 | |
| | | | | | | | | | | | | | | | | | | | | | also apply to vectors. This allows us to compile this: #include <emmintrin.h> __m128i a(__m128 a, __m128 b) { return a==a & b==b; } __m128i b(__m128 a, __m128 b) { return a!=a | b!=b; } to: _a: cmpordps %xmm1, %xmm0 ret _b: cmpunordps %xmm1, %xmm0 ret with clang instead of to a ton of horrible code. llvm-svn: 76863 | |||||
* | refactor a bunch of code out into a helper function, | Chris Lattner | 2009-07-23 | 1 | -63/+73 | |
| | | | | | | no functionality change. llvm-svn: 76859 | |||||
* | Added PHI Def & Kill tracking to PHIElimination pass. | Lang Hames | 2009-07-23 | 2 | -4/+56 | |
| | | | | llvm-svn: 76849 | |||||
* | Support insertps via the intrinsic and add a couple of simple | Eric Christopher | 2009-07-23 | 1 | -2/+14 | |
| | | | | | | testcases to make sure it's being generated. llvm-svn: 76843 | |||||
* | Do not call getMangledName on Intrinsics. | Sanjiv Gupta | 2009-07-23 | 1 | -4/+3 | |
| | | | | llvm-svn: 76842 | |||||
* | MDString | Devang Patel | 2009-07-23 | 7 | -14/+15 | |
| | | | | | | | - Rename member function size(). New name is length(). - Store string beginning and length. Earlier it used to store string end. llvm-svn: 76841 | |||||
* | Minor cosmetics: indentation, formatting, naming. | Andreas Bolka | 2009-07-23 | 1 | -18/+18 | |
| | | | | llvm-svn: 76839 | |||||
* | Reverting r76825 and r76828, since they caused clang runtime errors and some ↵ | Reid Kleckner | 2009-07-23 | 5 | -451/+214 | |
| | | | | | | build failure involving memset. llvm-svn: 76838 | |||||
* | add header for 'memset'. | Zhongxing Xu | 2009-07-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 76837 | |||||
* | Silence "uninitialized use" warning. | Devang Patel | 2009-07-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 76836 | |||||
* | Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵ | Devang Patel | 2009-07-23 | 8 | -74/+90 | |
| | | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834 | |||||
* | Fix error message for correct opcode. | Eric Christopher | 2009-07-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 76829 | |||||
* | Make the JIT code emitter properly retry and ask for more memory when it runs | Reid Kleckner | 2009-07-23 | 4 | -110/+319 | |
| | | | | | | | | | | | | | out of memory, and also make the default memory manager allocate more memory when it runs out. Also, switch function stubs and global data over to using the BumpPtrAllocator. This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB of memory, and instead allocates in 512K slabs. I suspect this size could go lower, especially on embedded platforms, now that more slabs can be allocated. llvm-svn: 76828 | |||||
* | Parameterize the BumpPtrAllocator over a slab allocator. It defaults to using | Reid Kleckner | 2009-07-23 | 1 | -104/+131 | |
| | | | | | | | | | | | malloc, so there should be no functional changes to other code. These changes are necessary since I have plans to use this allocator in the JIT memory manager, and it needs a special allocator. I also added some tests which helped me pinpoint some bugs. llvm-svn: 76825 | |||||
* | remove SectionFlags::Small: it is only used on Xcore, and we'll find | Chris Lattner | 2009-07-22 | 5 | -29/+7 | |
| | | | | | | a better solution for it in the future. llvm-svn: 76818 | |||||
* | x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2). | Dan Gohman | 2009-07-22 | 1 | -10/+31 | |
| | | | | llvm-svn: 76817 | |||||
* | Rename the new unsigned and signed keywords to nuw and nsw, | Dan Gohman | 2009-07-22 | 4 | -26/+26 | |
| | | | | | | which stand for no-unsigned-wrap and no-signed-wrap. llvm-svn: 76810 | |||||
* | Reorder if-else branches as suggested by Bill. | David Greene | 2009-07-22 | 1 | -4/+4 | |
| | | | | llvm-svn: 76808 | |||||
* | Fix typo in addrmode definition. | David Goodwin | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76806 | |||||
* | Use getTargetConstant instead of getConstant since it's meant as an constant ↵ | Evan Cheng | 2009-07-22 | 4 | -22/+25 | |
| | | | | | | operand. llvm-svn: 76803 | |||||
* | Constify the key in Mi2IndexMap. | David Greene | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76801 | |||||
* | Ignore undef uses. | Evan Cheng | 2009-07-22 | 1 | -0/+3 | |
| | | | | llvm-svn: 76799 | |||||
* | Switch some clients to Value::getName(), and other getName() user | Daniel Dunbar | 2009-07-22 | 4 | -17/+17 | |
| | | | | | | | simplification. - NFC llvm-svn: 76789 | |||||
* | Fix indentation. | Devang Patel | 2009-07-22 | 1 | -6/+6 | |
| | | | | llvm-svn: 76787 | |||||
* | Simplify some uses of Value::getName() | Daniel Dunbar | 2009-07-22 | 3 | -4/+7 | |
| | | | | llvm-svn: 76786 | |||||
* | Remove unnecessary store to temporary std::string. | Daniel Dunbar | 2009-07-22 | 1 | -3/+4 | |
| | | | | llvm-svn: 76782 | |||||
* | Put comment printing under asm-verbose. | David Greene | 2009-07-22 | 1 | -13/+36 | |
| | | | | llvm-svn: 76780 | |||||
* | Fix indentation. | Daniel Dunbar | 2009-07-22 | 1 | -18/+19 | |
| | | | | llvm-svn: 76778 | |||||
* | Make some changes suggested by Bill and Evan. | David Greene | 2009-07-22 | 2 | -34/+25 | |
| | | | | llvm-svn: 76775 | |||||
* | Fix thinko. | Devang Patel | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76769 | |||||
* | Use isa<> instead of dyn_cast<>. | Devang Patel | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76767 | |||||
* | Add replaceAllUsesWith() to FE replace debug info constructs while building ↵ | Devang Patel | 2009-07-22 | 1 | -0/+12 | |
| | | | | | | complex types. llvm-svn: 76765 | |||||
* | Do not print "metadata" twice while printing MDString. | Devang Patel | 2009-07-22 | 1 | -2/+0 | |
| | | | | | | This fixes unittest failure. llvm-svn: 76764 | |||||
* | Eliminate a redudant check Eli pointed out. | Evan Cheng | 2009-07-22 | 1 | -2/+2 | |
| | | | | llvm-svn: 76762 | |||||
* | Fixed build warning. No functionality change. | Sanjiv Gupta | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76761 | |||||
* | Introduce MetadataBase, a base class for MDString and MDNode. | Devang Patel | 2009-07-22 | 9 | -67/+155 | |
| | | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759 | |||||
* | doxygenify | Chris Lattner | 2009-07-22 | 1 | -7/+7 | |
| | | | | llvm-svn: 76750 | |||||
* | Add newline at end of file. | Duncan Sands | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76736 | |||||
* | Thread local globals don't require special handling by the linker and so can | Richard Osborne | 2009-07-22 | 1 | -0/+7 | |
| | | | | | | be placed in the standard data / bss sections. llvm-svn: 76735 | |||||
* | Revert commit 76707, it was breaking the llvm-gcc build | Duncan Sands | 2009-07-22 | 1 | -2/+1 | |
| | | | | | | | | on linux platforms. The binutils assembler does not recognize the "s" flag, see for example http://sourceware.org/binutils/docs/as/Section.html llvm-svn: 76733 | |||||
* | Don't give a massive inlining cost bonus to available_externally | Eli Friedman | 2009-07-22 | 1 | -2/+1 | |
| | | | | | | | | functions with a single use; eliminating the single use may eliminate the function from the current module, but usually doesn't eliminate it from the final program. llvm-svn: 76730 | |||||
* | Don't forget D16 - D31 are clobbered by calls and sjlj eh. | Evan Cheng | 2009-07-22 | 3 | -10/+20 | |
| | | | | llvm-svn: 76729 | |||||
* | Add R12 to the list of registers clobbered by 16-bit Thumb calls as a ↵ | Evan Cheng | 2009-07-22 | 1 | -2/+2 | |
| | | | | | | pre-caution. r12 could be live once we have mixed 32-bit and 16-bit instructions. llvm-svn: 76728 | |||||
* | Fix a obvious copy-n-paste bug. | Evan Cheng | 2009-07-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 76727 | |||||
* | Get rid one of the getRegisterNumbering. Also add D16 - D31. | Evan Cheng | 2009-07-22 | 3 | -69/+78 | |
| | | | | llvm-svn: 76725 | |||||
* | Add support for MMX VSETCC. | Eli Friedman | 2009-07-22 | 2 | -0/+33 | |
| | | | | llvm-svn: 76713 | |||||
* | Added the unconditional JMP with an 8-bit relocation for the | Sean Callanan | 2009-07-22 | 1 | -1/+3 | |
| | | | | | | assembler / disassembler. llvm-svn: 76712 | |||||
* | Add an entry. | Evan Cheng | 2009-07-22 | 1 | -0/+4 | |
| | | | | llvm-svn: 76711 |