- Nov 15, 2012
-
-
Duncan Sands authored
the utility for extracting a chain of operations from the IR, thought that it might as well combine any constants it came across (rather than just returning them along with everything else). On the other hand, the factorization code would like to see the individual constants (this is quite reasonable: it is much easier to pull a factor of 3 out of 2*3 than it is to pull it out of 6; you may think 6/3 isn't so hard, but due to overflow it's not as easy to undo multiplications of constants as it may at first appear). This patch therefore makes LinearizeExprTree stupider: it now leaves optimizing to the optimization part of reassociate, and sticks to just analysing the IR. llvm-svn: 168035
-
Alexander Potapenko authored
The need for this has been reported by Jack Howarth (howarth@bromo.med.uc.edu) who's porting ASan-Darwin to GCC llvm-svn: 168032
-
Nick Lewycky authored
Fixes PR14073! llvm-svn: 168031
-
Craig Topper authored
llvm-svn: 168030
-
Craig Topper authored
llvm-svn: 168029
-
Craig Topper authored
Make a bunch of floating point operations on vectors Expand so that instruction selection won't fail. llvm-svn: 168028
-
Lang Hames authored
more sense anyway - it determines how expressions are codegen'd. It also ensures that -ffp-contract=fast has the intended effect when compiling LLVM IR. llvm-svn: 168027
-
Craig Topper authored
llvm-svn: 168026
-
Craig Topper authored
llvm-svn: 168025
-
Nick Lewycky authored
can't handle the input file type. This resulted in PR14338. llvm-svn: 168024
-
Richard Trieu authored
Fix an off-by-one error by switching < to <= in -Wtautological-constant-out-of-range-compare and added test case. llvm-svn: 168023
-
Daniel Jasper authored
The matchers rely on the complete AST being traversed as shown by the new test cases. llvm-svn: 168022
-
Andrew Trick authored
Jakub Staszak spotted this in review. I don't notice these things until I manually rerun benchmarks. But reducing unit tests is a very high priority. llvm-svn: 168021
-
Jordan Rose authored
llvm-svn: 168020
-
Jordan Rose authored
We do this by using the "most recent" good location: if a synthesized function 'A' calls another function 'B', the path notes for the call to 'B' will be placed at the same location as the path note for calling 'A'. Similarly, the call to 'A' will have a note saying "Entered call from...", and now we just don't emit that (since the user doesn't have a body to look at anyway). Previously, we were doing this for the "Calling..." notes, but not for the "Entered call from..." or "Returning to caller". This caused a crash when the path entered and then exiting a call within a synthesized body. <rdar://problem/12657843> llvm-svn: 168019
-
Sean Callanan authored
expressions that refer to ivars will not work because Clang emits IR that refers to them to get the ivar offsets. However, it is possible to search the runtime for these values. I have added support for reading the relevant tables to the Objective-C runtime, and extended ClangExpressionDeclMap to query that information if and only if it doesn't find the symbols in the binary. Also added a testcase. <rdar://problem/12628122> llvm-svn: 168018
-
Argyrios Kyrtzidis authored
not ReadExpr(). Also add a test case making sure the thread safety attributes work as expected when they come from a PCH. Fixes rdar://12584141 & http://llvm.org/PR13982 llvm-svn: 168017
-
Eli Friedman authored
current list of powerpc-darwin8 failures. llvm-svn: 168016
-
Tanya Lattner authored
llvm-svn: 168015
-
Eric Christopher authored
llvm-svn: 168014
-
NAKAMURA Takumi authored
llvm-svn: 168013
-
Richard Smith authored
type-name is looked up in the context of the complete postfix-expression. Don't forget to pass the scope into this lookup when the type-name is a template-id; it might name an alias template which can't be found within the class itself. Bug spotted by Johannes Schaub on #llvm. llvm-svn: 168011
-
Eli Friedman authored
BinaryOperator::Opcode. This is bad form, and the behavior of the static_cast in this case is unspecified according to the standard. Fixes a warning that showed up from r167992 on self-host. llvm-svn: 168010
-
Jakub Staszak authored
llvm-svn: 168009
-
Owen Anderson authored
Add doInitialization and doFinalization methods to ModulePass's, to allow them to be re-initialized and reused on multiple Module's. Patch by Pedro Artigas. llvm-svn: 168008
-
Fariborz Jahanian authored
the default. // rdar://12109031 llvm-svn: 168007
-
Jakub Staszak authored
llvm-svn: 168006
-
Eli Friedman authored
PR14342. llvm-svn: 168005
-
Richard Smith authored
working with preprocessed testcases. This causes source locations in diagnostics to point at the spelling location instead of the presumed location, while still keeping the semantic effects of the line directives (entering and leaving system-header mode, primarily). llvm-svn: 168004
-
Argyrios Kyrtzidis authored
llvm-svn: 168003
-
Argyrios Kyrtzidis authored
local or loaded. llvm-svn: 168002
-
NAKAMURA Takumi authored
llvm-svn: 168001
-
rdar://problem/12408181Enrico Granata authored
<rdar://problem/12408181> Test case to make sure this area of ObjC support does not regress in the future llvm-svn: 168000
-
Bill Schmidt authored
PPC64 target. The five tests modified herein test code generation that is sensitive to the code model selected. So I've added -code-model=small to the RUN commands for each. Since small code model is the default, this has no effect for now; but this prepares us for eventually changing the default to medium code model for PPC64. Test changes verified with small and medium code model as default on powerpc64-unknown-linux-gnu. All tests continue to pass. llvm-svn: 167999
-
Sean Silva authored
llvm-svn: 167998
-
Fariborz Jahanian authored
generate expanded signature encoding to include types as we already do this for protocol method lists. // rdar://12109031 llvm-svn: 167997
-
Sean Silva authored
Some small related fixups to TestingGuide too. llvm-svn: 167996
-
Jordan Rose authored
llvm-svn: 167995
-
Jordan Rose authored
This is also a false-positive test case for <rdar://problem/12415065>. <rdar://problem/12687586> llvm-svn: 167994
-
- Nov 14, 2012
-
-
Richard Trieu authored
type conversion between integers. This allows the warning to be more accurate. Also, turned the warning off in an analyzer test. The relavent test cases are covered by the tests in Sema. llvm-svn: 167992
-