- Oct 20, 2015
-
-
Enrico Granata authored
llvm-svn: 250750
-
Lang Hames authored
Thanks Dave! llvm-svn: 250749
-
Duncan P. N. Exon Smith authored
llvm-svn: 250748
-
David Blaikie authored
As usual, this is a polymorphic hierarchy without polymorphic ownership, so simply make the dtor protected non-virtual, protected default copy ctor/assign, and make derived classes final. The derived classes will pick up correct default public copy ops (and dtor) implicitly. (wish I could add -Wdeprecated to the build, but last time I tried it triggered on some system headers I still need to look into/figure out) llvm-svn: 250747
-
Michael Liao authored
Allow LLVM to optimize the sequence like the following: %inc = add nsw i32 %i, 1 %cmp = icmp slt %n, %inc into: %cmp = icmp sle i32 %n, %i The case is not handled previously due to the complexity of compuation of %n. Hence, LLVM cannot swap operands of icmp accordingly. llvm-svn: 250746
-
Duncan P. N. Exon Smith authored
Besides the usual, I finally added an overload to `BasicBlock::splitBasicBlock()` that accepts an `Instruction*` instead of `BasicBlock::iterator`. Someone can go back and remove this overload later (after updating the callers I'm going to skip going forward), but the most common call seems to be `BB->splitBasicBlock(BB->getTerminator(), ...)` and I'm not sure it's better to add `->getIterator()` to every one than have the overload. It's pretty hard to get the usage wrong. llvm-svn: 250745
-
Enrico Granata authored
Let Language plugins vend a default DeclPrintingHelper in case a custom one is not specified for the specific invocation llvm-svn: 250744
-
Sanjay Patel authored
This was originally checked in at r250527, but reverted at r250570 because of PR25222. There were at least 2 problems: 1. The cost check was checking for an instruction with an exact cost of TCC_Expensive; that should have been >=. 2. The cause of the clang stage 1 failures was illegally sinking 'call' instructions; we can't sink instructions that may have side effects / are not safe to execute speculatively. Fixed those conditions in sinkSelectOperand() and added test cases. Original commit message: This is a follow-up to the discussion in D12882. Ideally, we would like SimplifyCFG to be able to form select instructions even when the operands are expensive (as defined by the TTI cost model) because that may expose further optimizations. However, we would then like a later pass like CodeGenPrepare to undo that transformation if the target would likely benefit from not speculatively executing an expensive op (this patch). Once we have this safety mechanism in place, we can adjust SimplifyCFG to restore its select-formation behavior that changed with r248439. Differential Revision: http://reviews.llvm.org/D13297 llvm-svn: 250743
-
Samuel Benzaquen authored
Reviewers: alexfh Differential Revision: http://reviews.llvm.org/D13179 llvm-svn: 250742
-
Duncan P. N. Exon Smith authored
llvm-svn: 250741
-
Siva Chandra authored
Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13877 llvm-svn: 250740
-
Davide Italiano authored
The two names are similar enough that they might lead to confusion. The output of readobj clarifies but I missed it when I originally committed this. Found while linking FreeBSD userland with lld. llvm-svn: 250739
-
Davide Italiano authored
We're gonna implement them at some point, but they're mostly warning, not of vital importance at this stage of development. llvm-svn: 250738
-
Rafael Espindola authored
For now SHF_STRINGS are not supported. llvm-svn: 250737
-
Rui Ueyama authored
llvm-svn: 250736
-
Greg Clayton authored
This allows open source MacOSX clients to not have to build debugserver and the current LLDB can find debugserver inside the selected Xcode.app on your system. <rdar://problem/23167253> llvm-svn: 250735
-
Enrico Granata authored
llvm-svn: 250734
-
Lang Hames authored
llvm-svn: 250733
-
Rui Ueyama authored
llvm-svn: 250732
-
Rafael Espindola authored
Given the name, it is natural for this function to compute the full target. This will simplify SHF_MERGE handling by allowing getLocalRelTarget to centralize the addend logic. llvm-svn: 250731
-
Rafael Espindola authored
llvm-svn: 250730
-
Jonathan Peyton authored
Just moved the *scan++ line up before the recursive call. Otherwise, infinite recursion occurs and leads to a segmentation fault. llvm-svn: 250729
-
Rui Ueyama authored
/OPT:foo,bar is equivalent to /OPT:foo /OPT:bar. Reported by alexchandel. https://llvm.org/bugs/show_bug.cgi?id=25228 llvm-svn: 250728
-
Jonathan Peyton authored
Without this fix, cancellation requests in one parallel region cause cancellation of the second region even though the second one was not intended to be cancelled. llvm-svn: 250727
-
Owen Anderson authored
It looks like an extra negation snuck in as apart of restoring it. llvm-svn: 250726
-
Rafael Espindola authored
llvm-svn: 250725
-
Krzysztof Parzyszek authored
llvm-svn: 250724
-
Teresa Johnson authored
Implemented suggestion by dblakie in review for r250704. llvm-svn: 250723
-
Lang Hames authored
llvm-svn: 250722
-
Eugene Zelenko authored
Differential Revision: http://reviews.llvm.org/D13840 llvm-svn: 250721
-
Benjamin Kramer authored
llvm-svn: 250720
-
Jun Bum Lim authored
Convert two halfword loads into a single 32-bit word load with bitfield extract instructions. For example : ldrh w0, [x2] ldrh w1, [x2, #2] becomes ldr w0, [x2] ubfx w1, w0, #16, #16 and w0, w0, #ffff llvm-svn: 250719
-
Krzysztof Parzyszek authored
- Isolate the check for the existence of a stack frame into hasFP. - Implement getFrameIndexReference for DWARF address computation. - Use getFrameIndexReference for offset computation in eliminateFrameIndex. - Preserve debug information for dynamically allocated stack objects. - Prefer FP to access local objects at -O0. - Add experimental code to skip allocframe when not strictly necessary (disabled by default). llvm-svn: 250718
-
Benjamin Kramer authored
While technically this is untested dead code, it has out-of-tree users. This reverts a part of r250434. llvm-svn: 250717
-
Lang Hames authored
llvm-svn: 250716
-
Lang Hames authored
llvm-svn: 250715
-
Krzysztof Parzyszek authored
Emit the CFI instructions after all code transformation have been done. This will avoid any interference between CFI instructions and packetization. llvm-svn: 250714
-
Matthias Braun authored
This reverts commit r250596. Reverted for now as the commit triggers assert in the AMDGPU target pending investigation. llvm-svn: 250713
-
Lang Hames authored
memory, rather than representing the stubs in IR. Update the CompileOnDemand layer to use this functionality. Directly emitting stubs is much cheaper than building them in IR and codegen'ing them (see below). It also plays well with remote JITing - stubs can be emitted directly in the target process, rather than having to send them over the wire. The downsides are: (1) Care must be taken when resolving symbols, as stub symbols are held in a separate symbol table. This is only a problem for layer writers and other people using this API directly. The CompileOnDemand layer hides this detail. (2) Aliases of function stubs can't be symbolic any more (since there's no symbol definition in IR), but must be converted into a constant pointer expression. This means that modules containing aliases of stubs cannot be cached. In practice this is unlikely to be a problem: There's no benefit to caching such a module anyway. On balance I think the extra performance is more than worth the trade-offs: In a simple stress test with 10000 dummy functions requiring stubs and a single executed "hello world" main function, directly emitting stubs reduced user time for JITing / executing by over 90% (1.5s for IR stubs vs 0.1s for direct emission). llvm-svn: 250712 -
George Rimar authored
The reason of collecting all undefines in vector is that during reading files we already need to have Symtab created. Or like was done in that patch - to put undefines from scripts somewhere to delay Symtab.addUndefinedOpt() call. Differential Revision: http://reviews.llvm.org/D13870 llvm-svn: 250711
-