- Apr 26, 2011
-
-
Chris Lattner authored
translation fails. We were bailing out in some cases that would cause us to miss GVN'ing some non-local cases away. llvm-svn: 130206
-
Nick Lewycky authored
Add support for switch and indirectbr edges. This works by densely numbering all blocks which have such terminators, and then separately numbering the possible successors. The predecessors write down a number, the successor knows its own number (as a ConstantInt) and sends that and the pointer to the number the predecessor wrote down to the runtime, who looks up the counter in a per-function table. Coverage data should now be functional, but I haven't tested it on anything other than my 2-file synthetic test program for coverage. llvm-svn: 130186
-
Chris Lattner authored
return it as a clobber. This allows GVN to do smart things. Enhance GVN to be smart about the case when a small load is clobbered by a larger overlapping load. In this case, forward the value. This allows us to compile stuff like this: int test(void *P) { int tmp = *(unsigned int*)P; return tmp+*((unsigned char*)P+1); } into: _test: ## @test movl (%rdi), %ecx movzbl %ch, %eax addl %ecx, %eax ret which has one load. We already handled the case where the smaller load was from a must-aliased base pointer. llvm-svn: 130180
-
- Apr 23, 2011
-
-
Jay Foad authored
llvm-svn: 130068
-
- Apr 21, 2011
-
-
Jay Foad authored
llvm-svn: 129932
-
Nick Lewycky authored
necessary since gcov counts transitions between blocks. It can't see if you've run every line in a straight-line function, so we add an edge for it to notice. llvm-svn: 129905
-
Nick Lewycky authored
comment for 80 columns. llvm-svn: 129904
-
Nick Lewycky authored
instrument the program to emit .gcda. TODO: we should emit slightly different .gcda files when .gcno emission is off. llvm-svn: 129903
-
- Apr 20, 2011
-
-
rdar://problem/9184212Cameron Zwarich authored
generated by llvm-gcc, since llvm-gcc uses 2 i64s for passing a 4 x float vector on ARM rather than an i64 array like Clang. llvm-svn: 129878
-
Cameron Zwarich authored
delete it. llvm-svn: 129877
-
Cameron Zwarich authored
more cases. llvm-svn: 129876
-
- Apr 19, 2011
-
-
Jay Foad authored
llvm-svn: 129759
-
- Apr 18, 2011
-
-
Chandler Carruth authored
silences Clang's -Wunused-function when building in release mode. llvm-svn: 129709
-
- Apr 16, 2011
-
-
Frits van Bommel authored
llvm-svn: 129644
-
Jay Foad authored
found by code inspection. llvm-svn: 129641
-
Rafael Espindola authored
llvm-svn: 129632
-
Nick Lewycky authored
Break the arc-profile code out to a function like the notes emission code is, and reorder the functions in the file. The only functionality change is that we no longer modify the Module when the Module has no debug info to use. llvm-svn: 129631
-
Nick Lewycky authored
does. Also mostly implement it. Still a work-in-progress, but generates legal output on crafted test cases. llvm-svn: 129630
-
- Apr 15, 2011
-
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129558
-
Eli Friedman authored
canonical, and generally leads to better code. Found while looking at an article about saturating arithmetic. llvm-svn: 129545
-
- Apr 14, 2011
-
-
Owen Anderson authored
Fix an infinite alternation in JumpThreading where two transforms would repeatedly undo each other. The solution is to perform more aggressive constant folding to make one of the edges just folded away rather than trying to thread it. Fixes <rdar://problem/9284786>. Discovered with CSmith. llvm-svn: 129538
-
Mon P Wang authored
llvm-svn: 129532
-
Mon P Wang authored
llvm-svn: 129509
-
Chris Lattner authored
instruction around, reducing work. Greatly simplify handling of debug instructions. There is no need to build up a vector of them and then move them into the one predecessor if we're processing a block. Instead just rescan the block and *copy* them into the pred. If a block gets merged into multiple preds, this will retain more debug info. llvm-svn: 129502
-
Chris Lattner authored
llvm-svn: 129501
-
- Apr 13, 2011
-
-
Mon P Wang authored
the same allocation size but different primitive sizes(e.g., <3xi32> and <4xi32>). When ScalarRepl promotes them, it can't use a bit cast but should use a shuffle vector instead. llvm-svn: 129472
-
Junjie Gu authored
llvm-svn: 129450
-
Junjie Gu authored
Passing unroll parameters (unroll-count, threshold, and partial unroll) via LoopUnroll class's ctor. Doing so will allow multiple context with different loop unroll parameters to run. This is a minor change and no effect on existing application. llvm-svn: 129449
-
Rafael Espindola authored
llvm-svn: 129447
-
Bill Wendling authored
llvm-svn: 129419
-
Bill Wendling authored
llvm-svn: 129403
-
Bill Wendling authored
Now that we have a first-class way to represent unaligned loads, the unaligned load intrinsics are superfluous. First part of <rdar://problem/8460511>. llvm-svn: 129401
-
- Apr 12, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 129343
-
Nick Lewycky authored
Use debug info in the IR to find the directory/file:line:col. Each time that location changes, bump a counter. Unlike the existing profiling system, we don't try to look at argv[], and thusly don't require main() to be present in the IR. This matches GCC's technique where you specify the profiling flag when producing each .o file. The runtime library is minimal, currently just calling printf at program shutdown time. The API is designed to make it possible to emit GCOV data later on. llvm-svn: 129340
-
Nick Lewycky authored
llvm-svn: 129338
-
Dan Gohman authored
reassociation opportunities are exposed. This fixes a bug where the nested reassociation expects to be the IR to be consistent, but it isn't, because the outer reassociation has disconnected some of the operands. rdar://9167457 llvm-svn: 129324
-
Chris Lattner authored
llvm-svn: 129319
-
Chris Lattner authored
has some bugs. If this is interesting functionality, it should be reimplemented in the argpromotion pass. llvm-svn: 129314
-
Nick Lewycky authored
mean that it has to be ConstantArray of ConstantStruct. We might have ConstantAggregateZero, at either level, so don't crash on that. Also, semi-deprecate the sentinal value. The linker isn't aware of sentinals so we end up with the two lists appended, each with their "sentinals" on them. Different parts of LLVM treated sentinals differently, so make them all just ignore the single entry and continue on with the rest of the list. llvm-svn: 129307
-
- Apr 11, 2011
-
-
Jay Foad authored
llvm-svn: 129271
-