- May 01, 2014
-
-
Alexey Samsonov authored
llvm-svn: 207704
-
Jay Foad authored
llvm-svn: 207703
-
Weiming Zhao authored
For pattern like ((x >> C1) & Mask) << C2, DAG combiner may convert it into (x >> (C1-C2)) & (Mask << C2), which makes pattern matching of ubfx more difficult. For example: Given %shr = lshr i64 %x, 4 %and = and i64 %shr, 15 %arrayidx = getelementptr inbounds [8 x [64 x i64]]* @arr, i64 0, %i64 2, i64 %and %0 = load i64* %arrayidx With current shift folding, it takes 3 instrs to compute base address: lsr x8, x0, #1 and x8, x8, #0x78 add x8, x9, x8 If using ubfx, it only needs 2 instrs: ubfx x8, x0, #4, #4 add x8, x9, x8, lsl #3 This fixes bug 19589 llvm-svn: 207702
-
Reid Kleckner authored
DwarfDebug.h has a SmallVector member containing a unique_ptr of an incomplete type. MSVC doesn't have key functions, so the vtable and dtor are emitted in AsmPrinter.cpp, where DwarfDebug's ctor is called. AsmPrinter.cpp include DwarfUnit.h and doesn't get a complete definition of DwarfTypeUnit. We could fix the problem by including DwarfUnit.h in DwarfDebug.h, but that would increase header bloat. Instead, define ~DwarfDebug out of line. llvm-svn: 207701
-
Greg Clayton authored
Sometimes when launching through a shell, we can run into cases where the /bin/sh or /usr/bin/arch can crash the process due to security measures. Now we correctly report when a process exited in the process of launching so we can show the reason why it crashed instead of just showing “initial process state wasn't stopped: exited”. llvm-svn: 207700
-
Greg Clayton authored
llvm-svn: 207699
-
Greg Clayton authored
llvm-svn: 207698
-
James Molloy authored
llvm-svn: 207697
-
Arnaud A. de Grandmaison authored
It moves them at the end of the range instead, so an extra erase is needed. It is strange that this code works without the erase. On the other hand, removing the remove_if will make fail some tests. llvm-svn: 207696
-
Joerg Sonnenberger authored
compatibility to libstdc++. Move the implementation into a header for easier sharing with libc++abi. Merge a number of improvements from that version. Provide a POD definition for <stdexcept>'s public use to avoid cast dances. Discussed with Marshall Clow. llvm-svn: 207695
-
Hans Wennborg authored
http://reviews.llvm.org/D3574 llvm-svn: 207694
-
Yi Jiang authored
llvm-svn: 207693
-
Michael Zolotukhin authored
There is no need to check if we want to hoist the immediate value of an shift instruction. Simply return TCC_Free right away. This change is like r206101, but for X86. rdar://problem/16190769 llvm-svn: 207692
-
Simon Atanasyan authored
element is a FileNode, request error description. If the element is Group, print hard coded error message. We need to implement a better diagnostics here but even current solution is better than a segmentation fault output. llvm-svn: 207691
-
Simon Atanasyan authored
No functional changes. llvm-svn: 207690
-
Simon Atanasyan authored
into the separate function. No functional changes. llvm-svn: 207689
-
Simon Atanasyan authored
No functional changes. llvm-svn: 207688
-
Simon Atanasyan authored
llvm-svn: 207687
-
Reid Kleckner authored
llvm-svn: 207686
-
Tom Stellard authored
llvm-svn: 207685
-
Tom Stellard authored
This file duplicates clc/math/gentype.inc and is not actually being used. Patch by: Jeroen Ketema llvm-svn: 207684
-
Alexey Samsonov authored
llvm-svn: 207683
-
David Majnemer authored
Summary: Friend declarations shouldn't mention explicit or virtual. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3562 llvm-svn: 207682
-
Richard Smith authored
llvm-svn: 207681
-
Richard Smith authored
llvm-svn: 207680
-
Carlo Kok authored
[IPO/MergeFunctions] changes so it doesn't try to bitcast a struct return type but instead recreates it with insert/extract value. llvm-svn: 207679
-
Tobias Grosser authored
This is a test case that is currently failing, but that should start working with an upcoming version of our delinearization pass. llvm-svn: 207678
-
Richard Smith authored
non-member declaration. Patch by Dinesh Dwivedi! llvm-svn: 207677
-
David Majnemer authored
Summary: Try to spot obvious mismatches with inalloca use. Reviewers: rnk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3572 llvm-svn: 207676
-
Reid Kleckner authored
We were emitting dynamic initializers for __thread variables if there was no explicit initializer, as in this test case: struct S { S(); }; __thread S s; llvm-svn: 207675 -
Rafael Espindola authored
It now defers all offset computation to getSymbolOffset. llvm-svn: 207674
-
Matheus Almeida authored
Summary: negu $reg is equivalent to negu $reg, $reg. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D3510 llvm-svn: 207673
-
Reid Kleckner authored
Patch by Dinesh Dwivedi! Differential Revision: http://reviews.llvm.org/D3376 llvm-svn: 207672
-
Matheus Almeida authored
Summary: The pattern sltu $r1, $r2, $imm is found in handwritten assembly which is just a shorthand version of sltui $r1, $r2, $imm. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D3508 llvm-svn: 207671
-
Hans Wennborg authored
We already do this for shstrtab, so might as well do it for strtab. This extracts the string table building code into a separate class. The idea is to use it for other object formats too. I mostly wanted to do this for the general principle, but it does save a little bit on object file size. I tried this on a clang bootstrap and saved 0.54% on the sum of object file sizes (1.14 MB out of 212 MB for a release build). Differential Revision: http://reviews.llvm.org/D3533 llvm-svn: 207670
-
Tim Northover authored
llvm-svn: 207669
-
Tim Northover authored
llvm-svn: 207668
-
Tim Northover authored
llvm-svn: 207667
-
Tim Northover authored
It's been decided that in the future, the floating-point immediate in instructions like "fcmeq v0.2s, v1.2s, #0.0" will be canonically "0.0", which has been implemented on AArch64 already but not ARM64. This fixes that issue. llvm-svn: 207666
-
David Majnemer authored
Pretty straightforward, we weren't propagating whether or not an AllocaInst had 'inalloca' marked on it when it came time to clone it. The inliner exposed this bug. A reduced testcase is forthcoming. llvm-svn: 207665
-