- Nov 15, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 168049
-
Dmitri Gribenko authored
llvm-svn: 168048
-
Duncan Sands authored
llvm-svn: 168042
-
Hans Wennborg authored
For global variables that get the same value stored into them everywhere, GlobalOpt will replace them with a constant. The problem is that a thread-local GlobalVariable looks like one value (the address of the TLS var), but is different between threads. This patch introduces Constant::isThreadDependent() which returns true for thread-local variables and constants which depend on them (e.g. a GEP into a thread-local array), and teaches GlobalOpt not to track such values. llvm-svn: 168037
-
Guy Benyei authored
The new OpenCL SPIR extension spec will define separate SPIR for 32 and 64 bit architectures. llvm-svn: 168036
-
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
-
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
-
Craig Topper authored
llvm-svn: 168026
-
Craig Topper authored
llvm-svn: 168025
-
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
-
Eric Christopher authored
llvm-svn: 168014
-
NAKAMURA Takumi authored
llvm-svn: 168013
-
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
-
Jakub Staszak authored
llvm-svn: 168006
-
NAKAMURA Takumi authored
llvm-svn: 168001
-
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
-
Sean Silva authored
Some small related fixups to TestingGuide too. llvm-svn: 167996
-
- Nov 14, 2012
-
-
Jakub Staszak authored
llvm-svn: 167991
-
Jakub Staszak authored
llvm-svn: 167989
-
NAKAMURA Takumi authored
llvm-svn: 167988
-
Eric Christopher authored
llvm-svn: 167987
-
Eric Christopher authored
llvm-svn: 167986
-
Eric Christopher authored
Approved by Chris Lattner. llvm-svn: 167984
-
Sean Silva authored
llvm-svn: 167979
-
Alexander Kornienko authored
FileCheck. llvm-svn: 167978
-
Jakub Staszak authored
llvm-svn: 167976
-
NAKAMURA Takumi authored
llvm-svn: 167975
-
Jyotsna Verma authored
llvm-svn: 167974
-
Benjamin Kramer authored
llvm-svn: 167973
-
Jakub Staszak authored
llvm-svn: 167972
-
Alexander Kornienko authored
llvm-svn: 167971
-
Chad Rosier authored
llvm-svn: 167970
-
Jakub Staszak authored
llvm-svn: 167969
-
Jakub Staszak authored
llvm-svn: 167968
-
Benjamin Kramer authored
The stack realignment code was fixed to work when there is stack realignment and a dynamic alloca is present so this shouldn't cause correctness issues anymore. Note that this also enables generation of AVX instructions for memset under the assumptions: - Unaligned loads/stores are always fast on CPUs supporting AVX - AVX is not slower than SSE We may need some tweaked heuristics if one of those assumptions turns out not to be true. Effectively reverts r58317. Part of PR2962. llvm-svn: 167967
-
Hal Finkel authored
For now, this uses 8 on-stack elements. I'll need to do some profiling to see if this is the best number. Pointed out by Jakob in post-commit review. llvm-svn: 167966
-