- Feb 24, 2013
-
-
Shankar Easwaran authored
llvm-svn: 175997
-
Benjamin Kramer authored
The error is a bit strange tbh, but better than crashing. llvm-svn: 175996
-
Benjamin Kramer authored
This is a common pattern with dyn_cast and similar constructs, when the PHI no longer depends on the select it can often be turned into a simpler construct or even get hoisted out of the loop. PR15340. llvm-svn: 175995
-
Benjamin Kramer authored
llvm-svn: 175994
-
Shankar Easwaran authored
llvm-svn: 175993
-
Shankar Easwaran authored
llvm-svn: 175992
-
Francois Pichet authored
llvm-svn: 175991
-
Ted Kremenek authored
This required more changes than I originally expected: - ObjCIvarRegion implements "canPrintPretty" et al - DereferenceChecker indicates the null pointer source is an ivar - bugreporter::trackNullOrUndefValue() uses an alternate algorithm to compute the location region to track by scouring the ExplodedGraph. This allows us to get the actual MemRegion for variables, ivars, fields, etc. We only hand construct a VarRegion for C++ references. - ExplodedGraph no longer drops nodes for expressions that are marked 'lvalue'. This is to facilitate the logic in the previous bullet. This may lead to a slight increase in size in the ExplodedGraph, which I have not measured, but it is likely not to be a big deal. I have validated each of the changed plist output. Fixes <rdar://problem/12114812> llvm-svn: 175988
-
Ted Kremenek authored
This provides a few sundry cleanups, and allows us to provide a compile-time check for a case that was a runtime assertion. llvm-svn: 175987
-
Ted Kremenek authored
This meant to be included in r175802. llvm-svn: 175986
-
Nadav Rotem authored
Fix PR15239. llvm-svn: 175985
-
Reed Kotler authored
as early as possible; which means during instruction selection. llvm-svn: 175984
-
Shankar Easwaran authored
llvm-svn: 175983
-
Richard Smith authored
array type. llvm-svn: 175982
-
Cameron Zwarich authored
builds. llvm-svn: 175981
-
Cameron Zwarich authored
true when shouldOnlyCommute is false, so we can remove code that checks otherwise. llvm-svn: 175980
-
Cameron Zwarich authored
itself recursively with a new instruction that has not been finalized, in order to determine whether to keep the instruction. On 'make check' and test-suite the only cases where the recursive invocation made any transformations were simple instruction commutations, so I am restricting the recursive invocation to do only this. The other cases wouldn't work correctly when updating LiveIntervals, since the new instructions don't have slot indices and LiveIntervals hasn't yet been updated. If the other transformations were actually triggering in any test case it would be possible to support it with a lot of effort, but since they don't it's not worth it. llvm-svn: 175979
-
Argyrios Kyrtzidis authored
full information about the macro (e.g if it was imported and where). llvm-svn: 175978
-
Argyrios Kyrtzidis authored
llvm-svn: 175977
-
Argyrios Kyrtzidis authored
just using ASTConsumer::HandleCXXStaticMemberVarInstantiation(), don't pass it with ASTConsumer::HandleTopLevelDecl. ASTConsumer::HandleTopLevelDecl is intended for user-written top-level decls; a consumer can treat an instantiated static data member however it wants of course. llvm-svn: 175976
-
Reed Kotler authored
proper. Fixed this already a few days ago for slti. llvm-svn: 175975
-
Cameron Zwarich authored
unless it was requested to with an optional parameter that defaults to false, so we don't need to handle that case in TwoAddressInstructionPass. llvm-svn: 175974
-
- Feb 23, 2013
-
-
Daniel Jasper authored
In conditional expressions, if the condition is split over multiple lines, also break before both operands. This prevents formattings like: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa == aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ? b : c; Which are bad, because they suggestion incorrect operator precedence: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa == (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ? b : c); This lead to the discovery that the expression parser incorrectly handled conditional operators and that it could also handle semicolons (which in turn reduced the amount of special casing for for-loops). As a side-effect, we can now apply the bin-packing configuration to the sections of for-loops. llvm-svn: 175973
-
Michael J. Spencer authored
llvm-svn: 175972
-
David Blaikie authored
llvm-svn: 175971
-
David Blaikie authored
After changing the way several value inheritance hierarchies (TypeLoc, CFGelement, ProgramPoint and SVal) handle casting, this documentation describes how 3rd party code may need to be updated to compile with the new APIs. As suggested by Sean Silva on cfe-dev. llvm-svn: 175970
-
David Blaikie authored
Post commit code review feedback from Matt Beaumont-Gay on r174248. llvm-svn: 175969
-
Benjamin Kramer authored
Testing shows that it's empty in >99% of the cases and I couldn't find a case where it contained more than 2 elements. llvm-svn: 175967
-
Benjamin Kramer authored
Move the cold virtual method getNameForDiagnostic out of line. llvm-svn: 175966
-
Renato Golin authored
llvm-svn: 175965
-
Renato Golin authored
llvm-svn: 175964
-
Enea Zaffanella authored
llvm-svn: 175963
-
Benjamin Kramer authored
Fixes PR15115. llvm-svn: 175962
-
Cameron Zwarich authored
MachineInstrs don't have a slot index. llvm-svn: 175961
-
Daniel Jasper authored
This fixes llvm.org/PR15061. Before: virtual void f(int *)const; After: virtual void f(int *) const; llvm-svn: 175960
-
Daniel Jasper authored
Also don't break in long include directives as that is not desired. We can now format: #include "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaa" #define LL_FORMAT "ll" printf("aaaaa: %d, bbbbbbbbb: %" LL_FORMAT "d, cccccccc: %" LL_FORMAT "d, ddddddddd: %" LL_FORMAT "d\n"); Before, this led to weird results. llvm-svn: 175959
-
Cameron Zwarich authored
running ASCI_Purple/SMG2000 in the test-suite. llvm-svn: 175957
-
Cameron Zwarich authored
llvm-svn: 175956
-
Cameron Zwarich authored
TwoAddressInstructionPass. The code in rescheduleMIBelowKill() is a bit tricky, since multiple instructions need to be moved down, one-at-a-time, in reverse order. llvm-svn: 175955
-
Logan Chien authored
llvm-svn: 175954
-