- Feb 11, 2010
-
-
Jakob Stoklund Olesen authored
Use SmallVector instead of std::vector for better speed when indirectbr has few successors. llvm-svn: 95879
-
Eric Christopher authored
symbols. Thanks to Duncan Sands for the testcase! llvm-svn: 95877
-
Daniel Dunbar authored
llvm-svn: 95876
-
Anders Carlsson authored
llvm-svn: 95874
-
Johnny Chen authored
as the "Permanently UNDEFINED" instruction. llvm-svn: 95873
-
Benjamin Kramer authored
llvm-svn: 95872
-
Bill Wendling authored
llvm-svn: 95871
-
John McCall authored
their spelling location. This prevents warnings from being swallowed just because the caret is on the first parenthesis in, say, NULL. This is an experiment; the risk is that there might be a substantial number of system headers which #define symbols to expressions which inherently cause warnings. My theory is that that's rare enough that it can be worked around case-by-case, and that producing useful warnings around NULL is worth it. But I'm willing to accept that I might be empirically wrong. llvm-svn: 95870
-
Ted Kremenek authored
Enhance the printf format string checking when using the format specifier flags ' ', '0', '+' with the 'p' or 's' conversions (since they are nonsensical and undefined). This is similar to GCC's checking. Also warning when a precision is used with the 'p' conversin specifier, since it has no meaning. llvm-svn: 95869
-
Chris Lattner authored
fixes the remaining x86-64 jit failures afaik. llvm-svn: 95867
-
Chris Lattner authored
r12b, etc) also encodes to a R/M value of 4, which is just as illegal as ESP/RSP for the non-sib version an address. This fixes x86-64 jit miscompilations of a bunch of programs. llvm-svn: 95866
-
Anders Carlsson authored
Right now, it's off by default but can be tested by passing -fdump-vtable-layouts to clang -cc1. This option will cause all vtables that will normally be emitted as part of codegen to also be dumped using the new layout code. I've also added a very simple new vtable layout test case. llvm-svn: 95865
-
Ted Kremenek authored
llvm-svn: 95864
-
Ted Kremenek authored
array associated with NonNullAttr. This fixes yet another leak when ASTContext uses a BumpPtrAllocator. Fixes: <rdar://problem/7637150> llvm-svn: 95863
-
Jeffrey Yasskin authored
llvm-svn: 95862
-
Ted Kremenek authored
storing the set of StoredDeclsMaps in an internal vector of void*. This isn't an ideal solution, but for the time being this fixes a major memory leak with these DenseMaps not being freed. Fixes: <rdar://problem/7634755> llvm-svn: 95861
-
Chris Lattner authored
Stub out some dummy fixups to make things work. We can now emit fixups like this: subl $20, %esp ## encoding: [0x83,0xec,A] ## fixup A - offset: 2, value: 20, kind: fixup_1byte_imm Emitting $20 as a single-byte fixup to be later resolved by the assembler is ridiculous of course (vs just emitting the byte) but this is a failure of the matcher, which should be producing an imm of 20, not an MCExpr of 20. llvm-svn: 95860
-
Chris Lattner authored
and rename it to EmitImmediate. llvm-svn: 95859
-
Chris Lattner authored
llvm-svn: 95858
-
Chris Lattner authored
llvm-svn: 95857
-
Jeffrey Yasskin authored
llvm-svn: 95856
-
Chris Lattner authored
what it does. Enhance it to return false to optimizing vector sign extensions from vector comparisions, which is the idiom used to get a splatted vector for a vector comparison. Doing this breaks vector-casts.ll, add some compensating transformations to handle the important case they cover without depending on this canonicalization. This fixes rdar://7434900 a serious pessimization of vector compares. llvm-svn: 95855
-
Chris Lattner authored
llvm-svn: 95854
-
Ted Kremenek authored
array allocated using the allocator in ASTContext. This addresses these strings getting leaked when using a BumpPtrAllocator (in ASTContext). Fixes: <rdar://problem/7636765> llvm-svn: 95853
-
Chris Lattner authored
block. Other blocks may have pointer cycles that will crash basicaa and other alias analyses. In any case, there is no point wasting cycles optimizing dead blocks. This fixes rdar://7635088 llvm-svn: 95852
-
Chris Lattner authored
llvm-svn: 95851
-
Chris Lattner authored
instead of considering x|undef -> x, which may not be true. llvm-svn: 95850
-
Daniel Dunbar authored
llvm-svn: 95849
-
Daniel Dunbar authored
llvm-svn: 95848
-
Ted Kremenek authored
we would just leak them all over the place, with no clear ownership of these objects at all. AttributeList objects would get leaked on both error and non-error paths. Note: I introduced the usage of llvm::OwningPtr<AttributeList> to manage these objects, which is particularly useful for methods with multiple return sites. In at least one method I used them even when they weren't strictly necessary because it clarified the ownership semantics and made the code easier to read. Should the excessive 'take()' and 'reset()' calls become a performance issue we can always re-evaluate. Note+1: I believe I have not introduced any double-frees, but it would be nice for someone to review this. This fixes <rdar://problem/7635046>. llvm-svn: 95847
-
Eric Christopher authored
Update testcase accordingly now that we can optimize another section. llvm-svn: 95846
-
John McCall authored
template explicit specialization. Complete an apparently stalled refactor towards using CheckSpecializationInstantiationRedecl(). llvm-svn: 95845
-
Devang Patel authored
llvm-svn: 95844
-
Douglas Gregor authored
llvm-svn: 95843
-
Douglas Gregor authored
Decl subclasses. No functionality change. llvm-svn: 95841
-
Bill Wendling authored
llvm-svn: 95840
-
Bill Wendling authored
almost always comments afterwards that need printing. llvm-svn: 95839
-
Fariborz Jahanian authored
using property dot-syntax. Fixes radar 7628953. llvm-svn: 95838
-
Jeffrey Yasskin authored
the global TheJIT and TheJITResolver variables. Lazy compilation is supported by a global map from a stub address to the JITResolver that knows how to compile it. Patch by Olivier Meurant! llvm-svn: 95837
-
Douglas Gregor authored
and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836
-