- Apr 19, 2011
-
-
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
-
John McCall authored
llvm-svn: 129337
-
John McCall authored
for __unknown_anytype resolution to destructively modify the AST. So that's what it does now, which significantly simplifies some of the implementation. Normal member calls work pretty cleanly now, and I added support for propagating unknown-ness through &. llvm-svn: 129331
-
- Apr 11, 2011
-
-
Anders Carlsson authored
If there's an invoke destination, we should use invoke instead of call when calling the __cxa_bad_typeid function. Fixes PR7400. llvm-svn: 129273
-
John McCall authored
llvm-svn: 129269
-
Anders Carlsson authored
llvm-svn: 129265
-
Anders Carlsson authored
CodeGenFunction::EmitDynamicCast always return null or throw a bad_cast exception. llvm-svn: 129264
-
Anders Carlsson authored
llvm-svn: 129262
-
Anders Carlsson authored
llvm-svn: 129261
-
- Apr 10, 2011
-
-
Anders Carlsson authored
represents a dynamic cast where we know that the result is always null. For example: struct A { virtual ~A(); }; struct B final : A { }; struct C { }; bool f(B* b) { return dynamic_cast<C*>(b); } llvm-svn: 129256
-