- Mar 09, 2015
-
-
Simon Atanasyan authored
llvm-svn: 231642
-
Simon Atanasyan authored
1. Move relocation addendum reading code to the MipsRelocationHandler class to reduce code duplication. 2. Factor out the relocations calculation code into the separate function to be ready to handle MIPS N64 ABI relocation chains. No functional changes. llvm-svn: 231641
-
Simon Atanasyan authored
llvm-svn: 231640
-
Simon Atanasyan authored
We should not take in account a type of "source" symbol. Cross mode jump adjustment is requred when target symbol and relocation belong to different (regular/microMIPS) instruction sets. llvm-svn: 231639
-
Tamas Berghammer authored
Thic change have effect wehn the AVX registers aren't available with reporting the count of user registers without them. Differential revision: http://reviews.llvm.org/D8111 llvm-svn: 231638
-
Sylvestre Ledru authored
llvm-svn: 231637
-
Daniel Jasper authored
I.e.: #define A public: // The new line before this line would be removed. int a; llvm-svn: 231636
-
Kevin Qin authored
As it broke llvm bootstrap. llvm-svn: 231635
-
Owen Anderson authored
Fix a bug in the LLParser where we failed to diagnose landingpads with non-constant clause operands. Fixing this also exposed a related issue where the landingpad under construction was not cleaned up when an error was raised, which would cause bad reference errors before the error could actually be printed. llvm-svn: 231634
-
Tobias Grosser authored
llvm-svn: 231633
-
Kevin Qin authored
For inner one of nested loops, it is more likely to be a hot loop, and the runtime check can be promoted out from patch 0001, so the overhead is less, we can try a doubled threshold to unroll more loops. llvm-svn: 231632
-
Kevin Qin authored
Runtime unrolling is an expensive optimization which can bring benefit only if the loop is hot and iteration number is relatively large enough. For some loops, we know they are not worth to be runtime unrolled. The scalar loop from vectorization is one of the cases. llvm-svn: 231631
-
Kevin Qin authored
Runtime unrollng will introduce a runtime check in loop prologue. If the unrolled loop is a inner loop, then the proglogue will be inside the outer loop. LICM pass can help to promote the runtime check out if the checked value is loop invariant. llvm-svn: 231630
-
Davide Italiano authored
llvm-svn: 231629
-
Nico Weber authored
This only warns on direct gotos and indirect gotos with a unique label (`goto *&&label;`). Jumping out ith a true indirect goto is already an error. This isn't O(1), but goto statements are less common than continue, break, and return. Also, the GetDeepestCommonScope() call in the same function does the same amount of work, so this isn't worse than what's there in a complexity sense, and it should be pretty fast in practice. This is the last piece that was missing in r231623. llvm-svn: 231628
-
Rui Ueyama authored
Update the tests so that they use layout-after instead of layout-before. In all other places, we use layout-afters as primary edges. llvm-svn: 231627
-
Mehdi Amini authored
Summary: See the two test cases. ; Can fold fcmp with undef on one side by choosing NaN for the undef ; Can fold fcmp with undef on both side ; fcmp u_pred undef, undef -> true ; fcmp o_pred undef, undef -> false ; because whatever you choose for the first undef ; you can choose NaN for the other undef Reviewers: hfinkel, chandlerc, majnemer Reviewed By: majnemer Subscribers: majnemer, llvm-commits Differential Revision: http://reviews.llvm.org/D7617 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231626
-
Nico Weber authored
ParseCompoundStatement() currently never returns StmtError, but if it did, Sema would keep the __finally scope on its stack indefinitely. Explicitly add an error callback that clears it. llvm-svn: 231625
-
Mehdi Amini authored
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231624
-
Nico Weber authored
Since continue, break, return are much more common than __finally, this tries to keep the work for continue, break, return O(1). Sema keeps a stack of active __finally scopes (to do this, ActOnSEHFinally() is split into ActOnStartSEHFinally() and ActOnFinishSEHFinally()), and the various jump statements then check if the current __finally scope (if present) is deeper than then destination scope of the jump. The same warning for goto statements is still missing. This is the moral equivalent of MSVC's C4532. llvm-svn: 231623
-
Nico Weber authored
llvm-svn: 231622
-
Nico Weber authored
llvm-svn: 231621
-
Alexander Kornienko authored
llvm-svn: 231620
-
David Blaikie authored
Patch by Richard (legalize at xmission dot com). Differential Revision: http://reviews.llvm.org/D8155 llvm-svn: 231619
-
Rui Ueyama authored
Previously, getEmptyKey and getTombstoneKey return the same value in the sense of isEqual defined by the same class, although they need to be distinct values. This could confuse DenseMap. We didn't see any issue by this wrong code because we don't delete elements from the symbol table. We only add or replace elements. But this is a bug and needs to be fixed anyway. llvm-svn: 231618
-
David Blaikie authored
Patch by Richard (legalize at xmission dot com). Differential Revision: http://reviews.llvm.org/D8154 llvm-svn: 231617
-
Rui Ueyama authored
llvm-svn: 231616
-
Rui Ueyama authored
All readers except PE/COFF reader create layout-after edges to preserve the original symbol order. PE/COFF uses layout-before edges as primary edges for no reason. This patch makes PE/COFF reader to create layout-after edges. Resolver is updated to recognize reverse edges of layout-after edges in the garbage collection pass. Now we can retire layout-before edges. I don't do that in this patch because if I do, I would have updated many tests to replace all occurrrences of "layout-before" with "layout-after". So that's a TODO. llvm-svn: 231615
-
- Mar 08, 2015
-
-
Rui Ueyama authored
"first" and "second" are not easy to memorize. Define a type to use meaningful names. llvm-svn: 231614
-
Owen Anderson authored
Teach DataLayout to infer a plausible alignment for things even when nothing is specified by the user. llvm-svn: 231613
-
Johannes Doerfert authored
llvm-svn: 231612
-
Rui Ueyama authored
This patch broke a buildbot. llvm-svn: 231611
-
Rui Ueyama authored
That commit was reverted in r231582 as it was a culprit for buildbot breakage. Turned out it's not. llvm-svn: 231610
-
Joerg Sonnenberger authored
llvm-svn: 231609
-
Joerg Sonnenberger authored
llvm-svn: 231608
-
Johannes Doerfert authored
r231268 accidently dropped the initialization that is re-introduced here. The const will enforce initialization for the future. llvm-svn: 231607
-
Johannes Doerfert authored
The current tests will continue to cover this code and more will be added when non-affine loops are supported. llvm-svn: 231606
-
Benjamin Kramer authored
Found by msan. llvm-svn: 231605
-
Benjamin Kramer authored
Type traits are hard. llvm-svn: 231604
-
Benjamin Kramer authored
We copy them around a lot and skip construction in favor of startToken, make the default construction trivial to reflect that. llvm-svn: 231603
-