- Apr 25, 2014
-
-
Manman Ren authored
override the default cold threshold. When we use command line argument to set the inline threshold, the default cold threshold will not be used. This is in line with how we use OptSizeThreshold. When we want a higher threshold for all functions, we do not have to set both inline threshold and cold threshold. llvm-svn: 207245
-
David Blaikie authored
Refactor some common logic in DwarfUnit::constructVariableDIE and pass non-null DIE by reference to DbgVariable::setDIE llvm-svn: 207244
-
Saleem Abdulrasool authored
Use the new generic @llvm.arm.hint hint intrinsic rather than the specialised @llvm.arm.sevl hint instruction. llvm-svn: 207243
-
Saleem Abdulrasool authored
Introduce the llvm.arm.hint(i32) intrinsic that can be used to inject hints into the instruction stream. This is particularly useful for generating IR from a compiler where the user may inject an intrinsic (e.g. __yield). These are then pattern substituted into the correct instruction which already existed. llvm-svn: 207242
-
David Majnemer authored
Almost all linkage calculation for VarDecls occured inside of GetLLVMLinkageVarDefinition except for static data members. Centralize the logic so that it can be more readily reused. No functionality change. llvm-svn: 207241
-
David Blaikie authored
llvm-svn: 207240
-
David Majnemer authored
It turns out that linkage and visibility have rather similar logic for both functions and non-variable globals. Split the calculation out so that both sides may share this code. No functionality change. llvm-svn: 207239
-
David Blaikie authored
Remove unnecessary explicit unique_ptr ctors now that buildASTFromCode returns a unique_ptr instead of a raw pointer. llvm-svn: 207238
-
David Blaikie authored
llvm-svn: 207237
-
Adrian Prantl authored
Debug info: Let dbg.values inserted by LowerDbgDeclare inherit the location of the dbg.value. This gets rid of tons of redundant variable DIEs in subscopes. rdar://problem/14874886, rdar://problem/16679936 llvm-svn: 207236
-
Adrian Prantl authored
AllocaInst that was missing in one location. Debug info for optimized code: Support variables that are on the stack and described by DBG_VALUEs during their lifetime. Previously, when a variable was at a FrameIndex for any part of its lifetime, this would shadow all other DBG_VALUEs and only a single fbreg location would be emitted, which in fact is only valid for a small range and not the entire lexical scope of the variable. The included dbg-value-const-byref testcase demonstrates this. This patch fixes this by Local - emitting dbg.value intrinsics for allocas that are passed by reference - dropping all dbg.declares (they are now fully lowered to dbg.values) SelectionDAG - renamed constructors for SDDbgValue for better readability. - fix UserValue::match() to handle indirect values correctly - not inserting an MMI table entries for dbg.values that describe allocas. - lowering dbg.values that describe allocas into *indirect* DBG_VALUEs. CodeGenPrepare - leaving dbg.values for an alloca were they are (see comment) Other - regenerated/updated instcombine.ll testcase and included source rdar://problem/16679879 http://reviews.llvm.org/D3374 llvm-svn: 207235
-
Hans Wennborg authored
We would previously hit an assert if using /fallback with an .ll file. llvm-svn: 207234
-
Hans Wennborg authored
llvm-svn: 207233
-
Marshall Clow authored
Added some tests for equal elements in min_element and max_element. Bug #19547 was invalid, but we weren't testing that case llvm-svn: 207232
-
David Blaikie authored
Slightly less blindly fixing clang-tools-extra now that I remember that the "check-clang" target doesn't check clang-tools-extra llvm-svn: 207231
-
David Blaikie authored
Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up llvm-svn: 207230
-
David Blaikie authored
llvm-svn: 207229
-
Evgeniy Stepanov authored
llvm-svn: 207227
-
Tilmann Scheller authored
There's no need for local symbols to go through the GOT, in fact it seems GNU ld is not even emitting GOT entries for local symbols and will error out when trying to resolve a GOT relocation for a local symbol. This bug triggers when bootstrapping clang on AArch64 Linux with -fPIC and the ARM64 backend. The AArch64 backend is not affected. With this commit it's now possible to bootstrap clang on AArch64 Linux with the ARM64 backend (-fPIC, -O3). llvm-svn: 207226
-
Rafael Espindola authored
This reverts commit r207155. The test was still failing. llvm-svn: 207225
-
Evgeniy Stepanov authored
Add move fopen/freopen interceptors from TSan to common. llvm-svn: 207224
-
Kostya Serebryany authored
llvm-svn: 207223
-
Jiangning Liu authored
llvm-svn: 207222
-
Tim Northover authored
Also an unused variable, so double bonus! This should deal with PR19548. llvm-svn: 207221
-
Alexander Potapenko authored
llvm-svn: 207220
-
Bradley Smith authored
llvm-svn: 207219
-
Dmitry Vyukov authored
Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=45 llvm-svn: 207218
-
Chandler Carruth authored
SCCMap to test for nodes that have been re-added to the root SCC rather than a set vector. We already have done the SCCMap lookup, we juts need to test it in two different ways. In turn, do most of the processing of these nodes as they go into the root SCC rather than lazily. This simplifies the final loop to just stitch the root SCC into its children's parent sets. No functionlatiy changed. However, this makes a few things painfully obvious, which was my intent. =] There is tons of repeated code introduced here and elsewhere. I'm splitting the refactoring of that code into helpers from this change so its clear that this is the change which switches the datastructures used around, and the other is a pure factoring & deduplication of code change. llvm-svn: 207217
-
Dmitri Gribenko authored
It looks like on 18th April clang added dependency from clangCodeGen.a to LLVMProfileData.a and since then lldb have problem with linking to clangCodeGen.a due to missing symbols. This adds LLVMProfileData.a to USEDLIBS to fix that problem. Patch by Robert Matusewicz. llvm-svn: 207216
-
Kevin Qin authored
This patch is a supplement of implementing predicate of FP, enabling aarch64 backend no-fp tests on arm64 target for verification. During this, one bug is exposed and fixed by this patch. llvm-svn: 207215
-
Kevin Qin authored
According to the specification, CRC is an optional extension of the architecture. llvm-svn: 207214
-
Chandler Carruth authored
remove the nodes in the SCC from the SCC map entirely prior to the DFS walk. This allows the SCC map to represent both the state of not-yet-re-added-to-an-SCC and added-back-to-this-SCC independently. The first is being missing from the SCC map, the second is mapping back to 'this'. In a subsequent commit, I'm going to use this property to simplify the new node list for this SCC. In theory, I think this also makes the contract for orphaning a node from the graph slightly less confusing. Now it is also orphaned from the SCC graph. Still, this isn't quite right either, and so I'm not adding test cases here. I'll add test cases for the behavior of orphaning nodes when the code *actually* supports it. The change here is mostly incidental, my goal is simplifying the algorithm. llvm-svn: 207213
-
Chandler Carruth authored
child from the worklist, wait until we actually need to pop another element off of the worklist and skip over any that were already visited by the DFS. This also enables swapping the nodes of the SCC into the worklist. No functionality changed. llvm-svn: 207212
-
Dmitry Vyukov authored
llvm-svn: 207211
-
Kostya Serebryany authored
[asan] implement an experimental detector of ODR violations. Not tested yet outside of a tiny test, may need tuning. llvm-svn: 207210
-
Dmitry Vyukov authored
llvm-svn: 207209
-
Dmitry Vyukov authored
llvm-svn: 207208
-
Dmitry Vyukov authored
failure: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5/builds/3747/steps/test/logs/stdio llvm-svn: 207207
-
Dmitry Vyukov authored
+ fixes crashes due to races on symbolizer, see https://code.google.com/p/thread-sanitizer/issues/detail?id=55 llvm-svn: 207206
-
Dmitry Vyukov authored
llvm-svn: 207205
-