- Jan 21, 2009
-
-
Owen Anderson authored
I accidentally removed this check in an earlier commit, which cause breakage in the pre alloc splitter. llvm-svn: 62678
-
Chris Lattner authored
llvm-svn: 62677
-
Chris Lattner authored
llvm-svn: 62676
-
Chris Lattner authored
tells us whether Preprocessor::HandleIdentifier needs to be called. Because this method is only rarely needed, this saves a call and a bunch of random checks. This drops the time in HandleIdentifier from 3.52ms to .98ms on cocoa.h on my machine. llvm-svn: 62675
-
Chris Lattner authored
llvm-svn: 62674
-
-
Chris Lattner authored
llvm-svn: 62672
-
Chris Lattner authored
llvm-svn: 62671
-
Ted Kremenek authored
llvm-svn: 62670
-
Ted Kremenek authored
llvm-svn: 62669
-
Chris Lattner authored
file, just load them directly as ints. llvm-svn: 62668
-
Ted Kremenek authored
Because the RegionStore can reason about values beyond the reasoning power of BasicStore, this patch splits some of the test cases for the retain/release checker to have versions that are handled by RegionStore (more warnings) and BasicStore (less warnings). llvm-svn: 62667
-
Anders Carlsson authored
llvm-svn: 62666
-
Sanjiv Gupta authored
Also a few signed comparison fixes. llvm-svn: 62665
-
Scott Michel authored
- Ensure that (operation) legalization emits proper FDIV libcall when needed. - Fix various bugs encountered during llvm-spu-gcc build, along with various cleanups. - Start supporting double precision comparisons for remaining libgcc2 build. Discovered interesting DAGCombiner feature, which is currently solved via custom lowering (64-bit constants are not legal on CellSPU, but DAGCombiner insists on inserting one anyway.) - Update README. llvm-svn: 62664
-
Sanjiv Gupta authored
Allow targets to legalize operations (with illegal operands) that produces multiple values. For example, a load with an illegal operand (a load produces two values, a value and chain). llvm-svn: 62663
-
Chris Lattner authored
this removes 4266 calls to LookupDecl. llvm-svn: 62662
-
Evan Cheng authored
unsigned test(unsigned a) { return ~a; } llvm used to generate: movl $4294967295, %eax xorl 4(%esp), %eax Now it generates: movl 4(%esp), %eax notl %eax It's 3 bytes shorter. llvm-svn: 62661
-
Dale Johannesen authored
llvm-svn: 62660
-
Daniel Dunbar authored
- Toolchain is responsible for providing list of prefixes to search. - Implement -print-file-name=xxx and -print-prog-name=xxx driver options. llvm-svn: 62659
-
Anders Carlsson authored
llvm-svn: 62656
-
Ted Kremenek authored
llvm-svn: 62655
-
Daniel Dunbar authored
llvm-svn: 62654
-
Daniel Dunbar authored
- For now forces generation of plist files, need to think about the right interface. - Changed -fsyntax-only mode to be its own phase (more consistent). - Add -WA, for passing options verbatim to analyzer. llvm-svn: 62649
-
Ted Kremenek authored
Static Analyzer: When generating plists for errors reports, generate one plist file per translation unit that contains all of the diagnostics. llvm-svn: 62647
-
Fariborz Jahanian authored
No change in functionality. llvm-svn: 62646
-
Dale Johannesen authored
Besides APFloat, this involved removing code from two places that thought they knew the result of frem(0., x) but were wrong. llvm-svn: 62645
-
Steve Naroff authored
No functionality change. llvm-svn: 62640
-
Owen Anderson authored
llvm-svn: 62639
-
Devang Patel authored
llvm-svn: 62638
-
Daniel Dunbar authored
llvm-svn: 62637
-
rdar://problem/6510344Ted Kremenek authored
Fix: <rdar://problem/6510344> [pth] PTH slows down regular lexer considerably (when it has substantial work) Changes to IdentifierTable: - High-level summary: StringMap never owns IdentifierInfos. It just references them. - The string map now has StringMapEntry<IdentifierInfo*> instead of StringMapEntry<IdentifierInfo>. The IdentifierInfo object is allocated using the same bump pointer allocator as used by the StringMap. Changes to IdentifierInfo: - Added an extra pointer to point to the StringMapEntry<IdentifierInfo*> in the string map. This pointer will be null if the IdentifierInfo* is *only* used by the PTHLexer (that is it isn't in the StringMap). Algorithmic changes: - Non-PTH case: IdentifierInfo::get() will always consult the StringMap first to see if we have an IdentifierInfo object. If that StringMapEntry references a null pointer, we allocate a new one from the BumpPtrAllocator and update the reference in the StringMapEntry. - PTH case: We do the same lookup as with the non-PTH case, but if we don't get a hit in the StringMap we do a secondary lookup in the PTHManager for the IdentifierInfo. If we don't find an IdentifierInfo we create a new one as in the non-PTH case. If we do find and IdentifierInfo in the PTHManager, we update the StringMapEntry to refer to it so that the IdentifierInfo will be found on the next StringMap lookup. This way we only do a binary search in the PTH file at most once for a given IdentifierInfo. This greatly speeds things up for source files containing a non-trivial amount of code. Performance impact: While these changes do add some extra indirection in IdentifierTable to access an IdentifierInfo*, I saw speedups even in the non-PTH case as well. Non-PTH: For -fsyntax-only on Cocoa.h, we see a 6% speedup. PTH (with Cocoa.h in token cache): 11% speedup. I also did an experiment where we did -fsyntax-only on a source file including a large header and Cocoa.h, but the token cache did not contain the larger header. For this file, we were seeing a performance *regression* when using PTH of 3% over non-PTH. Now we are seeing a performance improvement of 9%! Tests: The serialization tests are now failing. I looked at this extensively, and I my belief is that this change is unmasking a bug rather than introducing a new one. I have disabled the serialization tests for now. llvm-svn: 62636
-
Daniel Dunbar authored
individual checker options. llvm-svn: 62634
-
- Jan 20, 2009
-
-
Devang Patel authored
llvm-svn: 62625
-
Devang Patel authored
llvm-svn: 62624
-
Sebastian Redl authored
This allows more concise syntax when allocating an object using the ASTContext's allocator. Convert a few allocations to this operator to for test purposes. llvm-svn: 62623
-
Dale Johannesen authored
invoking the host fmod, not by lowering to frem and constant-folding that. Fix this so it tests what I want to test. llvm-svn: 62622
-
Mike Stump authored
llvm-svn: 62621
-
Anders Carlsson authored
llvm-svn: 62620
-
Chris Lattner authored
for whatever llc defaults to. This fixes PR3363 llvm-svn: 62619
-