- Aug 18, 2014
-
-
Rafael Espindola authored
llvm-svn: 215852
-
Rafael Espindola authored
llvm-svn: 215851
-
Rafael Espindola authored
llvm-svn: 215850
-
Rafael Espindola authored
llvm-svn: 215849
-
Rafael Espindola authored
llvm-svn: 215848
-
Daniel Sanders authored
Revert: r215698 - Current implementation of c.cond.fmt instructions only accept default cc0 register... It causes a number of regressions when -fintegrated-as is enabled. This happens because there are codegen-only instructions that incorrectly uses the first operand as the encoding for the $fcc register. The regressions do not occur when -via-file-asm is also given. llvm-svn: 215847
-
Saleem Abdulrasool authored
This was a thinko. The intent was to flip the explicit bits that need toggling rather than all bits. This would result in incorrect behaviour (which now is tested). Thanks to Nico Weber for pointing this out! llvm-svn: 215846
-
Manuel Klimek authored
llvm-svn: 215845
-
Rafael Espindola authored
This matches the behavior of GNU objdump. llvm-svn: 215844
-
Manuel Klimek authored
llvm-svn: 215843
-
Rafael Espindola authored
llvm-svn: 215842
-
Hans Wennborg authored
We already handle the no-slabs case when checking whether the current slab is large enough: if no slabs have been allocated, CurPtr and End are both 0. alignPtr(0), will still be 0, and so "if (Ptr + Size <= End)" fails. Differential Revision: http://reviews.llvm.org/D4943 llvm-svn: 215841
-
Manuel Klimek authored
llvm-svn: 215840
-
Manuel Klimek authored
Summary: Note that this code is still grossly under-tested - the next steps will be to add significantly better test coverage. Patch by Matthew Plant. Test Plan: Reviewers: Subscribers: llvm-svn: 215839
-
Rafael Espindola authored
Use it to implement some ELF only virtual interfaces instead of using error prone series of dyn_casts. llvm-svn: 215838
-
Rafael Espindola authored
It would prevent the display of a single byte instruction before a label. Patch by Steve King! llvm-svn: 215837
-
Rafael Espindola authored
llvm-svn: 215836
-
- Aug 17, 2014
-
-
Ed Maste authored
It looks like this comment was not changed during some refactoring that happened prior to the initial LLDB public release. llvm-svn: 215835
-
Olivier Goffart authored
Name might be empty again after we removed the '%' prefix and Name[0] would assert. Found on code like register int foo asm("%" MACRO); where MACRO was supposed to be defined in a header file that was not found. llvm-svn: 215834 -
Andreas Simbuerger authored
llvm-svn: 215832
-
Andreas Simbuerger authored
llvm-svn: 215831
-
Andreas Simbuerger authored
This will spill out information about LLVM-internals. However, in cases where the name of the Value matches the name of the array in the source, we provide more useful information. In cases where we spill internals, the information still might help the user to pin down the correct arrays. The problem we face here is: The error is pinned to the debug location of one of the offending values out of the alias set instead of all of them. The more information we give the user about the set of aliasing pointers the better. llvm-svn: 215830
-
Andreas Simbuerger authored
llvm-svn: 215829
-
Elena Demikhovsky authored
llvm-svn: 215828
-
Elena Demikhovsky authored
llvm-svn: 215827
-
Elena Demikhovsky authored
It should remove dosens of lines in handling instrinsics (in a huge switch) and give an easy way to add new intrinsics. I did not completed to move al intrnsics to the table, I'll do this in the upcomming commits. llvm-svn: 215826
-
Owen Anderson authored
Remove an InstCombine that transformed patterns like (x * uitofp i1 y) to (select y, x, 0.0) when the multiply has fast math flags set. While this might seem like an obvious canonicalization, there is one subtle problem with it. The result of the original expression is undef when x is NaN (remember, fast math flags), but the result of the select is always defined when x is NaN. This means that the new expression is strictly more defined than the original one. One unfortunate consequence of this is that the transform is not reversible! It's always legal to make increase the defined-ness of an expression, but it's not legal to reduce it. Thus, targets that prefer the original form of the expression cannot reverse the transform to recover it. Another way to think of it is that the transform has lost source-level information (the fast math flags), which is undesirable. llvm-svn: 215825
-
Chandler Carruth authored
clang-format. llvm-svn: 215824
-
Chandler Carruth authored
I'm using this to try to find more minimal test cases by re-fuzzing within a specific domain once errors are found. llvm-svn: 215823
-
Todd Fiala authored
See the following links for details: http://llvm.org/bugs/show_bug.cgi?id=20658 See http://reviews.llvm.org/D4941 llvm-svn: 215822
-
NAKAMURA Takumi authored
llvm-svn: 215821
-
- Aug 16, 2014
-
-
Matt Arsenault authored
Fixes things like fmul x, 2 -> fadd x, x llvm-svn: 215820
-
Chandler Carruth authored
instructions for blend operations at 128 bits. This was a serious hole in our prior blend lowering. llvm-svn: 215819
-
David Majnemer authored
While *most* (X sdiv 1) operations will get caught by InstSimplify, it is still possible for a sdiv to appear in the worklist which hasn't been simplified yet. This means that it is possible for 0 - (X sdiv 1) to get transformed into (X sdiv -1); dividing by -1 can make the transform produce undef values instead of the proper result. Sorry for the lack of testcase, it's a bit problematic because it relies on the exact order of operations in the worklist. llvm-svn: 215818
-
Tobias Grosser authored
This reverts commit 215466 (and 215528, a trivial formatting fix). The intention of these commits is a good one, but unfortunately they broke our LNT buildbot: http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly-codegen-isl Several of the cleanup changes that have been combined in this 'fixup' are trivial and could probably be committed as obvious changes without risking to break the build. The remaining changes are little and it should be easy to figure out what went wrong. llvm-svn: 215817
-
Tobias Grosser authored
This reverts commit 215684. The intention of the commit is great, but unfortunately it seems to be the cause of 14 LNT test suite failures: http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly/builds/116 To make our buildbots and performance testers green until this issue is solved, we temporarily revert this commit. llvm-svn: 215816
-
David Majnemer authored
We can combne a mul with a div if one of the operands is a multiple of the other: %mul = mul nsw nuw %a, C1 %ret = udiv %mul, C2 => %ret = mul nsw %a, (C1 / C2) This can expose further optimization opportunities if we end up multiplying or dividing by a power of 2. Consider this small example: define i32 @f(i32 %a) { %mul = mul nuw i32 %a, 14 %div = udiv exact i32 %mul, 7 ret i32 %div } which gets CodeGen'd to: imull $14, %edi, %eax imulq $613566757, %rax, %rcx shrq $32, %rcx subl %ecx, %eax shrl %eax addl %ecx, %eax shrl $2, %eax retq We can now transform this into: define i32 @f(i32 %a) { %shl = shl nuw i32 %a, 1 ret i32 %shl } which gets CodeGen'd to: leal (%rdi,%rdi), %eax retq This fixes PR20681. llvm-svn: 215815 -
Abramo Bagnara authored
llvm-svn: 215814
-
Nico Weber authored
I'm not very happy with duplicating the fpu->feature mapping in ARMAsmParser.cpp and in clang's driver. See the bug for a patch that doesn't do that, and the review thread [1] for why this duplication exists. 1: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140811/231052.html llvm-svn: 215811
-
Ben Langmuir authored
tables that correspond to ContinuousRangeMaps, since the keys to those maps need to be unique, or we may map to the wrong offset. This fixes a crash + malformed AST file seen when loading some modules that import Cocoa on Darwin, which is a module with no contents except imports of other modules. Unfortunately I have not been able to find a reduced test case that reproduces this problem. Also add an assert that we aren't mapping one key to multiple values in CRM. We ought to be able to say there are no duplicate keys at all, but there are a bunch of 0 -> 0 mappings that are showing up, probably coming from the source location table. llvm-svn: 215810
-