- 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
-
- Apr 09, 2011
-
-
Eli Friedman authored
is an array of structures doesn't imply it's a ConstantArray of ConstantStruct. llvm-svn: 129207
-
Chris Lattner authored
llvm-svn: 129203
-
Chris Lattner authored
delete the instruction pointed to by CGP's current instruction iterator, leading to a crash on the testcase. This fixes PR9578. llvm-svn: 129200
-
Nick Lewycky authored
can be used even when main() isn't present in the Module, but it means that you don't get to read argv[]. llvm-svn: 129163
-
- Apr 08, 2011
-
-
Nick Lewycky authored
of { i32, void ()* }. Teach the verifier to verify that, deleting copies of checks strewn about. llvm-svn: 129128
-
Devang Patel authored
llvm-svn: 129114
-
- Apr 07, 2011
-
-
Rafael Espindola authored
llvm-svn: 129087
-
Devang Patel authored
llvm-svn: 129078
-
Eli Friedman authored
is equivalent to any other relevant value; it isn't true in general. If it is equivalent, the LoopPromoter will tell the AST the equivalence. Also, delete the PreheaderLoad if it is unused. Chris, since you were the last one to make major changes here, can you check that this is sane? llvm-svn: 129049
-
Devang Patel authored
llvm-svn: 129041
-
Devang Patel authored
llvm-svn: 129035
-
- Apr 05, 2011
-
-
Nick Lewycky authored
llvm-svn: 128924
-
Nadav Rotem authored
space info. We crash with an assert in this case. This change checks that the address space of the bitcasted pointer is the same as the gep ptr. llvm-svn: 128884
-
- Apr 04, 2011
-
-
Jay Foad authored
returning a scalar value in a function whose return type is a single- element structure or array. llvm-svn: 128810
-
Eli Friedman authored
llvm-commits. (Not sure why it only breaks on Windows; maybe it has something to do with the iterator representation...) llvm-svn: 128802
-
- Apr 03, 2011
-
-
Eli Friedman authored
after the given instruction; make sure to handle that case correctly. (It's difficult to trigger; the included testcase involves a dead block, but I don't think that's a requirement.) While I'm here, get rid of the unnecessary warning about SimplifyInstructionsInBlock, since it should work correctly as far as I know. llvm-svn: 128782
-
- Apr 02, 2011
-
-
Benjamin Kramer authored
It's possible to craft an input that hits the recursion limits in a way that SimplifyDemandedBits doesn't simplify the icmp but ComputeMaskedBits can infer which bits are zero. No test case as it depends on too many other things. Fixes PR9609. llvm-svn: 128777
-
Benjamin Kramer authored
llvm-svn: 128745
-