- Oct 15, 2014
-
-
Jan Vesely authored
This effectively reverts revert 219707. After fixing the test to work with new function name format and renamed intrinsic. Reviewed-by:
Tom Stellard <tom@stellard.net> Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 219710
-
Rui Ueyama authored
llvm-svn: 219709
-
Hal Finkel authored
Reapply r216913, a fix for PR20832 by Andrea Di Biagio. The commit was reverted because of buildbot failures, and credit goes to Ulrich Weigand for isolating the underlying issue (which can be confirmed by Valgrind, which does helpfully light up like the fourth of July). Uli explained the problem with the original patch as: It seems the problem is calling multiplySignificand with an addend of category fcZero; that is not expected by this routine. Note that for fcZero, the significand parts are simply uninitialized, but the code in (or rather, called from) multiplySignificand will unconditionally access them -- in effect using uninitialized contents. This version avoids using a category == fcZero addend within multiplySignificand, which avoids this problem (the Valgrind output is also now clean). Original commit message: [APFloat] Fixed a bug in method 'fusedMultiplyAdd'. When folding a fused multiply-add builtin call, make sure that we propagate the correct result in the case where the addend is zero, and the two other operands are finite non-zero. Example: define double @test() { %1 = call double @llvm.fma.f64(double 7.0, double 8.0, double 0.0) ret double %1 } Before this patch, the instruction simplifier wrongly folded the builtin call in function @test to constant 'double 7.0'. With this patch, method 'fusedMultiplyAdd' correctly evaluates the multiply and propagates the expected result (i.e. 56.0). Added test fold-builtin-fma.ll with the reproducible from PR20832 plus extra test cases to verify the behavior of method 'fusedMultiplyAdd' in the presence of NaN/Inf operands. This fixes PR20832. llvm-svn: 219708 -
Rafael Espindola authored
This reverts commit r219705. CodeGen/R600/work-item-intrinsics.ll was failing on linux. llvm-svn: 219707
-
Rafael Espindola authored
Fixes pr20904. llvm-svn: 219706
-
Jan Vesely authored
v2: Add SI lowering Add test v3: Place work dimensions after the kernel arguments. v4: Calculate offset while lowering arguments v5: rebase v6: change prefix to AMDGPU Reviewed-by:Tom Stellard <tom@stellard.net> Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 219705
-
Jan Vesely authored
Reviewed-by:
Tom Stellard <tom@stellard.net> Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 219704
-
Reed Kotler authored
Summary: In order to facilitate use of common code, checking by reviewers of other fast-isel ports, and hopefully to eventually move most of Mips and other fast-isel ports into target independent code, I've tried to get the two implementations to line up. There is no functional code change. Just methods moved in the file to be in the same order as in AArch64. Test Plan: No functional change. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits, aemerson, rfuhler Differential Revision: http://reviews.llvm.org/D5692 llvm-svn: 219703
-
David Blaikie authored
DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself. Let me tell you a tale... Originally committed in r211723 after discovering a nasty case of weird scoping due to inlining, this was reverted in r211724 after it fired in ASan/compiler-rt. (minor diversion where I accidentally committed/reverted again in r211871/r211873) After further testing and fixing bugs in ArgumentPromotion (r211872) and Inlining (r212065) it was recommitted in r212085. Reverted in r212089 after the sanitizer buildbots still showed problems. Fixed another bug in ArgumentPromotion (r212128) found by this assertion. Recommitted in r212205, reverted in r212226 after it crashed some more on sanitizer buildbots. Fix clang some more in r212761. Recommitted in r212776, reverted in r212793. ASan failures. Recommitted in r213391, reverted in r213432, trying to reproduce flakey ASan build failure. Fixed bugs in r213805 (ArgPromo + DebugInfo), r213952 (LiveDebugVariables strips dbg_value intrinsics in functions not described by debug info). Recommitted in r214761, reverted in r214999, flakey failure on Windows buildbot. Fixed DeadArgElimination + DebugInfo bug in r219210. Recommitted in r219215, reverted in r219512, failure on ObjC++ atomic properties in the test-suite on Darwin. Fixed ObjC++ atomic properties issue in Clang in r219690. [This commit is provided 'as is' with no hope that this is the last time I commit this change either expressed or implied] llvm-svn: 219702
-
Ed Maste authored
The build fails due to missing asan runtime in the FreeBSD base system. Instead of marking it expected fail, just skip until we have the runtime available. llvm.org/pr21136 llvm-svn: 219701
-
Rafael Espindola authored
llvm-svn: 219700
-
Alexey Samsonov authored
llvm-svn: 219699
-
Matt Arsenault authored
Use 0 as the base address for a constant address, so if we have a constant address we can save moves and form read2/write2s. llvm-svn: 219698
-
Saleem Abdulrasool authored
Mangling for blocks defined within blocks in an ObjectiveC context were also broken by SVN r219393. Because the code in mangleName assumed that the code was either C or C++, we would trigger assertions when trying to mangle the inner blocks in an ObjectiveC context. Add a test and use the ObjectiveC specific mangling when dealing with an ObjectiveC method declaration. llvm-svn: 219697
-
Saleem Abdulrasool authored
This addresses a regression introduced with SVN r219393. A block may be contained within another block. In such a scenario, we would end up within a BlockDecl, which is not a NamedDecl (as the names are synthesised). The cast to a NamedDecl of the DeclContext would then assert as the types are unrelated. Restore the mangling behaviour to that prior to SVN r219393. If the current block is contained within a BlockDecl, walk up to the parent DeclContext, recursively, until we have a non-BlockDecl. This is expected to be a NamedDecl. Add in a couple of asserts to ensure that the assumption that we only encounter a block within a NamedDecl or a BlockDecl. llvm-svn: 219696
-
David Blaikie authored
Accidental commit. This reverts commit r219693. llvm-svn: 219695
-
David Blaikie authored
If we figure out why they should be here, let's add some testing of some kind so we can better demonstrate why it's needed. llvm-svn: 219694
-
David Blaikie authored
llvm-svn: 219693
-
David Blaikie authored
llvm-svn: 219692
-
Ulrich Weigand authored
llvm-svn: 219691
-
David Blaikie authored
DebugInfo: Don't leak location information from one function into the prologue of the next function. CodeGenFunction objects aren't really designed to be reused for more than one function, and doing so can leak debug info location information from one function into the prologue of the next. Add an assertion in to catch reuses of CodeGenFunction, which surprisingly only caught the ObjC atomic getter/setter cases. Fix those and add a test to demonstrate the issue. The test is a bit slim, because we're just testing for the absence of a debug location on the prologue instructions, which by itself probably wouldn't be the end of the world - but the particular debug location that was ending up there was for the previous function's last instruction. This produced debug info for another function within this function, which is something I'm trying to remove all cases of as its a substantial source of bugs, especially around inlining (see r219215). llvm-svn: 219690
-
Todd Fiala authored
This addresses this bug: http://www.llvm.org/bugs/show_bug.cgi?id=21267 Which has been broken since svn r215256 on Aug 8 2014. DO NOT REVERT THIS COMMIT EVEN IF IT CREATES TEST FAILURES. The test failures are a result of accumulation of hidden failures that were masked by the bug this change fixes. Most of our test runners as part of build testing rely on dotest.py returning non-zero to indicate some kind of errant test run. Thus, we have been flying blind since Aug 8 2014. llvm-svn: 219689
-
Hal Finkel authored
When LazyValueInfo uses @llvm.assume intrinsics to provide edge-value constraints, we should check for intrinsics that dominate the edge's branch, not just any potential context instructions. An assumption that dominates the edge's branch represents a truth on that edge. This is specifically useful, for example, if multiple predecessors assume a pointer to be nonnull, allowing us to simplify a later null comparison. The test case, and an initial patch, were provided by Philip Reames. Thanks! llvm-svn: 219688
-
- Oct 14, 2014
-
-
NAKAMURA Takumi authored
Revert r219638, (r219640 and r219676), "Removing the static destructor from ManagedStatic.cpp by controlling the allocation and de-allocation of the mutex." It caused hang-up on msc17 builder, probably deadlock. llvm-svn: 219687
-
Robert Khasanov authored
Added encoding tests. llvm-svn: 219686
-
Robert Khasanov authored
Added encoding tests. llvm-svn: 219685
-
Bradley Smith authored
llvm-svn: 219684
-
Evgeniy Stepanov authored
This change fixes 2 issues in the fast unwinder from r217079: * A crash if a frame pointer points below current stack head, but inside the current thread stack limits. That memory may be unmapped. A check for this was lost in r217079. * The last valid stack frame (the first one with an invalid next frame pointer) is always interpreted as a GCC layout frame. This results in garbled last PC in the (expected) case when the last frame has LLVM layout. llvm-svn: 219683
-
Alexander Potapenko authored
llvm-svn: 219682
-
Renato Golin authored
llvm-svn: 219681
-
Renato Golin authored
Updated the URL to reflect information on the problem as well as build the case for ARM. This seems to be a wider problem, not ARM or PPC specific. llvm-svn: 219680
-
Ulrich Weigand authored
llvm-svn: 219679
-
Dmitry Vyukov authored
llvm-svn: 219678
-
Evgeniy Stepanov authored
Allows to specify the unwinder to use for CHECK failures. Previous behaviour was to use the "fatal" unwinder. As compiler-rt is built without frame pointers, only the slow unwinder really makes sense here, and it is the default. llvm-svn: 219677
-
NAKAMURA Takumi authored
llvm-svn: 219676
-
Dmitry Vyukov authored
The current handling (manual execution of atexit callbacks) is overly complex and leads to constant problems due to mutual ordering of callbacks. Instead simply wrap callbacks into our wrapper to establish the necessary synchronization. Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=80 llvm-svn: 219675
-
Eric Christopher authored
indirecting through the TargetMachine. llvm-svn: 219674
-
Eric Christopher authored
the subtarget. llvm-svn: 219673
-
Eric Christopher authored
llvm-svn: 219672
-
Eric Christopher authored
MachineFunction rather than TargetMachine. llvm-svn: 219671
-