- Jan 14, 2009
-
-
Daniel Dunbar authored
- Still missing some odds and ends like -M. - Also, we still need to do some translation and forwarding of codegen options. llvm-svn: 62241
-
Fariborz Jahanian authored
explicit return type on block literals. llvm-svn: 62240
-
Daniel Dunbar authored
llvm-svn: 62239
-
Richard Osborne authored
frame index. eliminateFrameIndex will replace these instructions with (LDWSP|STWSP|LDAWSP) or (LDW|STW|LDAWF) if a frame pointer is in use. This fixes PR 3324. Previously we used LDWSP, STWSP, LDAWSP before frame pointer elimination. However since they were marked as implicitly using SP they could not be rematerialised. llvm-svn: 62238
-
Douglas Gregor authored
llvm-svn: 62237
-
Nuno Lopes authored
llvm-svn: 62236
-
Gabor Greif authored
llvm-svn: 62232
-
Douglas Gregor authored
Small cleanup in the handling of user-defined conversions. Also, implement an optimization when constructing a call. We avoid recomputing implicit conversion sequences and instead use those conversion sequences that we computed as part of overload resolution. llvm-svn: 62231
-
Steve Naroff authored
llvm-svn: 62214
-
Daniel Dunbar authored
llvm-svn: 62213
-
Dale Johannesen authored
my earlier patch to this file. The issue there was that all uses of an IV inside a loop are actually references to Base[IV*2], and there was one use outside that was the same but LSR didn't see the base or the scaling because it didn't recurse into uses outside the loop; thus, it used base+IV*scale mode inside the loop instead of pulling base out of the loop. This was extra bad because register pressure later forced both base and IV into memory. Doing that recursion, at least enough to figure out addressing modes, is a good idea in general; the change in AddUsersIfInteresting does this. However, there were side effects.... It is also possible for recursing outside the loop to introduce another IV where there was only 1 before (if the refs inside are not scaled and the ref outside is). I don't think this is a common case, but it's in the testsuite. It is right to be very aggressive about getting rid of such introduced IVs (CheckForIVReuse and the handling of nonzero RewriteFactor in StrengthReduceStridedIVUsers). In the testcase in question the new IV produced this way has both a nonconstant stride and a nonzero base, neither of which was handled before. And when inserting new code that feeds into a PHI, it's right to put such code at the original location rather than in the PHI's immediate predecessor(s) when the original location is outside the loop (a case that couldn't happen before) (RewriteInstructionToUseNewBase); better to avoid making multiple copies of it in this case. Also, the mechanism for keeping SCEV's corresponding to GEP's no longer works, as the GEP might change after its SCEV is remembered, invalidating the SCEV, and we might get a bad SCEV value when looking up the GEP again for a later loop. This also couldn't happen before, as we weren't recursing into GEP's outside the loop. Also, when we build an expression that involves a (possibly non-affine) IV from a different loop as well as an IV from the one we're interested in (containsAddRecFromDifferentLoop), don't recurse into that. We can't do much with it and will get in trouble if we try to create new non-affine IVs or something. More testcases are coming. llvm-svn: 62212
-
Mikhail Glushenkov authored
Both 'llvmc -o file' and 'llvmc -ofile' should work. llvm-svn: 62211
-
Daniel Dunbar authored
- This is what ccc (old) currently handles. - Clang accepts some more things that aren't getting forwarded... llvm-svn: 62210
-
Devang Patel authored
llvm-svn: 62209
-
Daniel Dunbar authored
- hello.cpp is XFAIL pending g++ emulation. llvm-svn: 62208
-
Daniel Dunbar authored
CCC_ECHO, and CCC_FALLBACK from environment as ccc (old) did. llvm-svn: 62207
-
Daniel Dunbar authored
llvm-svn: 62206
-
Steve Naroff authored
llvm-svn: 62205
-
Daniel Dunbar authored
llvm-svn: 62204
-
Ted Kremenek authored
FunctionDecl::setParams() now uses the allocator associated with ASTContext to allocate the array of ParmVarDecl*'s. llvm-svn: 62203
-
Ted Kremenek authored
Add member template MallocAllocator::Allocate(Num) (to match the same function in BumpPtrAllocator). llvm-svn: 62202
-
Chris Lattner authored
vector and extraneous loop over it, 2) not delete globals used by phis/selects etc which could actually be useful. This fixes PR3321. Many thanks to Duncan for narrowing this down. llvm-svn: 62201
-
Daniel Dunbar authored
llvm-svn: 62200
-
Devang Patel authored
Removoe MachineModuleInfo methods (and related DebugInfoDesc class hierarchy) that were used to handle debug info. llvm-svn: 62199
-
Nuno Lopes authored
llvm-svn: 62198
-
Fariborz Jahanian authored
objects as an objective-c object. llvm-svn: 62197
-
Dan Gohman authored
llvm-svn: 62196
-
Dan Gohman authored
llvm-svn: 62195
-
Dan Gohman authored
to Eli for pointing out that these forms don't ignore the high bits of their index operands, and as such are not immediately suitable for use by isel. llvm-svn: 62194
-
Ted Kremenek authored
- Use canonical FileID when using getSpelling() caching. This addresses some cache misses we were seeing with -fsyntax-only on Cocoa.h - Added Preprocessor::getPhysicalCharacterAt() utility method for clients to grab the first character at a specified sourcelocation. This uses the PTH spelling cache. - Modified Sema::ActOnNumericConstant() to use Preprocessor::getPhysicalCharacterAt() instead of SourceManager::getCharacterData() (to get PTH hits). These changes cause -fsyntax-only to not page in any sources from Cocoa.h. We see a speedup of 27%. llvm-svn: 62193
-
Douglas Gregor authored
llvm-svn: 62192
-
Devang Patel authored
Keep "has debug info" big in MachineModuleInfo to avoid circular dependency between AsmPrinter and CodeGen. llvm-svn: 62191
-
- Jan 13, 2009
-
-
Devang Patel authored
llvm-svn: 62190
-
Dale Johannesen authored
llvm-svn: 62189
-
Ted Kremenek authored
llvm-svn: 62187
-
Ted Kremenek authored
PTH: Fix remaining cases where the spelling cache in the PTH file was being missed when it shouldn't. This shaves another 7% off PTH time for -Eonly on Cocoa.h llvm-svn: 62186
-
Devang Patel authored
llvm-svn: 62185
-
Devang Patel authored
llvm-svn: 62184
-
Daniel Dunbar authored
llvm-svn: 62183
-
Chris Lattner authored
llvm-svn: 62182
-