- Feb 13, 2010
-
-
Chris Lattner authored
using pred_begin/end. It is much faster. llvm-svn: 96079
-
- Feb 05, 2010
-
-
Jakob Stoklund Olesen authored
Weird code sometimes uses pointer constants other than null. This patch teaches SimplifyCFG to build switch instructions in those cases. Code like this: void f(const char *x) { if (!x) puts("null"); else if ((uintptr_t)x == 1) puts("one"); else if (x == (char*)2 || x == (char*)3) puts("two"); else if ((intptr_t)x == 4) puts("four"); else puts(x); } Now becomes a switch: define void @f(i8* %x) nounwind ssp { entry: %magicptr23 = ptrtoint i8* %x to i64 ; <i64> [#uses=1] switch i64 %magicptr23, label %if.else16 [ i64 0, label %if.then i64 1, label %if.then2 i64 2, label %if.then9 i64 3, label %if.then9 i64 4, label %if.then14 ] Note that LLVM's own DenseMap uses magic pointers. llvm-svn: 95439
-
Dan Gohman authored
malloc caller in a profile. llvm-svn: 95407
-
- Feb 01, 2010
-
-
Bob Wilson authored
The testcase from pr6198 does not crash for me -- I don't know what's up with that -- so I'm not adding it to the tests. llvm-svn: 94984
-
- Jan 30, 2010
-
-
Bob Wilson authored
unconditionally. Besides checking the offset, also check that the underlying object is aligned as much as the load itself. llvm-svn: 94875
-
- Jan 29, 2010
-
-
Bob Wilson authored
llvm-svn: 94835
-
Bob Wilson authored
indices are safe if the result is known to be within the bounds of the underlying object. llvm-svn: 94829
-
Victor Hernandez authored
llvm-svn: 94763
-
- Jan 27, 2010
-
-
Bob Wilson authored
This was already being done in SSAUpdater::GetValueAtEndOfBlock so I've just changed SSAUpdater to check for existing PHIs in both places. llvm-svn: 94690
-
Benjamin Kramer authored
llvm-svn: 94684
-
Chris Lattner authored
llvm-svn: 94649
-
Chris Lattner authored
llvm-svn: 94648
-
Victor Hernandez authored
llvm-svn: 94634
-
Victor Hernandez authored
llvm-svn: 94618
-
- Jan 26, 2010
-
-
Victor Hernandez authored
llvm-svn: 94567
-
Victor Hernandez authored
In mem2reg, for all alloca/stores that get promoted where the alloca has an associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store. llvm-svn: 94493
-
- Jan 25, 2010
-
-
Victor Hernandez authored
llvm-svn: 94432
-
- Jan 24, 2010
-
-
Chris Lattner authored
llvm-svn: 94378
-
- Jan 23, 2010
-
-
Victor Hernandez authored
In mem2reg, for all alloca/stores that get promoted where the alloca has an associated llvm.dbg.declare instrinsic, insert an llvm.dbg.var intrinsic before each store llvm-svn: 94260
-
- Jan 22, 2010
-
-
Victor Hernandez authored
llvm-svn: 94194
-
Chris Lattner authored
missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
-
Victor Hernandez authored
llvm-svn: 94114
-
Victor Hernandez authored
llvm-svn: 94113
-
Victor Hernandez authored
DbgInfoIntrinsics no longer appear in an instruction's use list; so clean up looking for them in use iterations and remove OnlyUsedByDbgInfoIntrinsics() llvm-svn: 94111
-
- Jan 21, 2010
-
-
Chris Lattner authored
ValueMapper.cpp ends up calling an out of line __ZNK4llvm12PATypeHolder3getEv, which is a template and llvm-config determines arbitrarily to use the one in libipo. This sucks, but keeping the #include is a reasonable workaround. llvm-svn: 94103
-
Chris Lattner authored
llvm-svn: 94102
-
Chris Lattner authored
llvm-svn: 94101
-
Victor Hernandez authored
llvm-svn: 94092
-
Victor Hernandez authored
llvm-svn: 94091
-
- Jan 20, 2010
-
-
Victor Hernandez authored
llvm-svn: 93989
-
Victor Hernandez authored
Map operands of all function-local metadata, not just metadata passed to llvm.dbg.declare intrinsics llvm-svn: 93979
-
- Jan 18, 2010
-
-
Devang Patel authored
because it points to an alloca instruction through metadata. llvm-svn: 93757
-
- Jan 15, 2010
-
-
Bob Wilson authored
llvm-svn: 93560
-
- Jan 12, 2010
-
-
Chris Lattner authored
llvm-svn: 93251
-
- Jan 10, 2010
-
-
Julien Lerouge authored
llvm-svn: 93093
-
- Jan 09, 2010
-
-
Julien Lerouge authored
llvm-svn: 93038
-
- Jan 05, 2010
-
-
Benjamin Kramer authored
llvm-svn: 92760
-
Dan Gohman authored
llvm-svn: 92739
-
Dan Gohman authored
non-zero trip count. Use SmallVector's pop_back_val(). llvm-svn: 92734
-
Dan Gohman authored
RecursivelyDeleteDeadPHINode, and DeleteDeadPHIs return a flag indicating whether they made any changes. llvm-svn: 92732
-