- Apr 22, 2011
-
-
Nick Lewycky authored
compile time) and .gcda emission (at runtime). --coverage enables both. This does not yet add the profile_rt library to the link step if -fprofile-arcs is enabled when linking. llvm-svn: 129956
-
- Apr 21, 2011
-
-
Jay Foad authored
llvm-svn: 129929
-
John McCall authored
of which break strict compatibility with previous compilers. Implement one of them and then immediately opt out on Darwin. llvm-svn: 129899
-
Argyrios Kyrtzidis authored
double data[20000000] = {0}; we would blow out the memory by creating 20M Exprs to fill out the initializer. To fix this, if the initializer list initializes an array with more elements than there are initializers in the list, have InitListExpr store a single 'ArrayFiller' expression that specifies an expression to be used for value initialization of the rest of the elements. Fixes rdar://9275920. llvm-svn: 129896
-
Anders Carlsson authored
llvm-svn: 129894
-
Chris Lattner authored
llvm-svn: 129892
-
- Apr 20, 2011
-
-
Daniel Dunbar authored
were computing the conversion as (ptr != 0 && non-virtual), when it should be (ptr != 0 || is-virtual). - Test to follow in LLVM test-suite. llvm-svn: 129830
-
Chris Lattner authored
llvm-svn: 129829
-
- Apr 19, 2011
-
-
Daniel Dunbar authored
llvm-svn: 129823
-
Chris Lattner authored
redundancy pointed out by John. llvm-svn: 129808
-
- Apr 18, 2011
-
-
Devang Patel authored
llvm-svn: 129703
-
Anders Carlsson authored
llvm-svn: 129698
-
Anders Carlsson authored
llvm-svn: 129682
-
Chris Lattner authored
it down. we effectively were compile the testcase into: void test14(int x) { switch (x) { case 11: break; case 42: test14(97); // fallthrough default: test14(42); break; which is not the same thing at all. This fixes a miscompilation of MallocBench/gs seen on the clang-x86_64-linux-fnt buildbot. llvm-svn: 129679
-
- Apr 17, 2011
-
-
Anders Carlsson authored
turns out that a field or base needs to be laid out in the tail padding of the base, CGRecordLayoutBuilder::ResizeLastBaseFieldIfNecessary will convert it to an array of i8. I've audited the new test results to make sure that they are still valid. I've also verified that we pass a self-host with this change. This (finally) fixes PR5589! llvm-svn: 129673
-
Anders Carlsson authored
llvm-svn: 129671
-
Anders Carlsson authored
llvm-svn: 129669
-
Anders Carlsson authored
Use a SmallVector for field types in CGRecordLayoutBuilder now that llvm::StructType::get takes an ArrayRef. llvm-svn: 129667
-
Eli Friedman authored
properly. llvm-svn: 129657
-
-
Chris Lattner authored
are trivial. This exposes opportunities earlier, and allows fastisel to do good things with these at -O0. This addresses rdar://9289468 - clang doesn't fold memset_chk at -O0 llvm-svn: 129651
-
rdar://9289603Chris Lattner authored
fix rdar://9289603 - clang should fold trivial ?: for enums as well as integer constants into select at -O0 by making the isCheapEnoughToEvaluateUnconditionally predicate handle anything that folds to a constant. In particular, we now fold enums. llvm-svn: 129649
-
- Apr 16, 2011
-
-
Devang Patel authored
llvm-svn: 129626
-
Devang Patel authored
llvm-svn: 129625
-
- Apr 15, 2011
-
-
Michael J. Spencer authored
llvm-svn: 129570
-
Richard Smith authored
llvm-svn: 129567
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129559
-
Peter Collingbourne authored
As an extension, generic selection support has been added for all supported languages. The syntax is the same as for C1X. llvm-svn: 129554
-
Richard Smith authored
llvm-svn: 129541
-
- Apr 14, 2011
-
-
Anton Korobeynikov authored
AAPCS+VFP), similar to fastcall / stdcall / whatevercall seen on x86. In particular, all library functions should always be AAPCS regardless of floating point ABI used. llvm-svn: 129534
-
Ken Dyck authored
functionality intended. llvm-svn: 129496
-
Ken Dyck authored
in functionality intended. llvm-svn: 129491
-
- Apr 13, 2011
-
-
Bill Wendling authored
Removing the unaligned load tests from builtins-x86.c since they're generated by a regular 'load' now. llvm-svn: 129464
-
Bill Wendling authored
llvm-svn: 129433
-
Bill Wendling authored
take it! I wasn't able to get __builtin_ia32_loaddqu to transform into an unaligned load...I'll have to look into it further. llvm-svn: 129427
-
Anders Carlsson authored
llvm-svn: 129424
-
Bill Wendling authored
llvm-svn: 129420
-
Daniel Dunbar authored
there is no reason to align them higher. - This roughly matches llvm-gcc's r126913. - It is an open question whether or not we should do this for cstring's in general (code size vs optimization potential), for now we just match llvm-gcc until someone wants to run some experiments. llvm-svn: 129410
-
John McCall authored
because the result is ignored. The particular example here is with property l-values, but there could be all sorts of lovely casts that this isn't safe for. Sink the check into the one case that seems to actually be capable of honoring this. llvm-svn: 129397
-
- Apr 12, 2011
-
-
John McCall authored
weak linkage. Also, fix a problem where global weak variables with non-trivial initializers were getting guard variables, or at least were checking for them and then crashing. llvm-svn: 129342
-