- Jul 24, 2009
-
-
Daniel Dunbar authored
llvm-svn: 76962
-
- Jul 22, 2009
-
-
Daniel Dunbar authored
llvm-svn: 76782
-
Owen Anderson authored
llvm-svn: 76702
-
- Jul 21, 2009
-
-
Owen Anderson authored
llvm-svn: 76598
-
Ted Kremenek authored
llvm-svn: 76595
-
- Jul 20, 2009
-
-
Chris Lattner authored
doesn't cause ".no_dead_strip" to be emitted on darwin. llvm-svn: 76399
-
Bill Wendling authored
"private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. llvm-svn: 76385
-
- Jul 18, 2009
-
-
Eli Friedman authored
llvm-svn: 76284
-
- Jul 16, 2009
-
-
Owen Anderson authored
our current context-passing stuff, which is also fixed here llvm-svn: 76089
-
Owen Anderson authored
llvm-svn: 75863
-
- Jul 15, 2009
-
-
Owen Anderson authored
llvm-svn: 75703
-
- Jul 14, 2009
-
-
Torok Edwin authored
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
-
- Jul 13, 2009
-
-
Owen Anderson authored
llvm-svn: 75497
-
- Jul 11, 2009
-
-
Torok Edwin authored
Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
-
- Jul 10, 2009
-
-
Owen Anderson authored
This started as a small change, I swear. Unfortunately, lots of things call the [I|F]CmpInst constructors. Who knew!? llvm-svn: 75200
-
- Jul 08, 2009
-
-
Owen Anderson authored
llvm-svn: 75025
-
Owen Anderson authored
llvm-svn: 74985
-
- Jul 07, 2009
-
-
Owen Anderson authored
llvm-svn: 74878
-
Owen Anderson authored
Finish LLVMContext-ing lib/Analysis. This required pushing LLVMContext's through the ValueTracking API. llvm-svn: 74873
-
- Jul 06, 2009
-
-
Owen Anderson authored
llvm-svn: 74844
-
Owen Anderson authored
llvm-svn: 74811
-
- Jul 03, 2009
-
-
Duncan Sands authored
llvm-svn: 74773
-
- Jul 01, 2009
-
-
Chris Lattner authored
to not have to create a temporary vector (in the API at least). Patch by Jay Foad! llvm-svn: 74584
-
- Jun 26, 2009
-
-
Devang Patel authored
Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms and llvm.dbg.global_variables. llvm-svn: 74251
-
- Jun 17, 2009
-
-
Sanjiv Gupta authored
>> What if my global variable was into a different address space than stack? >> > > It doesn't matter in terms of semantics: because AnalyzeGlobal > returned false, we're guaranteed the address of the global is never > taken. I wouldn't be surprised if we end up generating invalid IR in > some cases, though, because of the semantics of replaceAllUsesWith. > Do you have a testcase that breaks? > > The problem is replaceAllUsesWith asserts for type mismatch here. Try attached .bc with llvm-ld. assert(New->getType() == getType() && "replaceAllUses of value with new value of different type!"); Since stack is always on address space zero, I don't think that type of GV in a different address space is ever going to match. The other way is to allow replaceAllUsesWith to ignore address spaces while comparing types. (do we have a way to do that ?). But then such an optimization may fail the entire idea of user wanting to place a variable into different memory space. The original idea of user might be to save on the stack space (data memory) and hence he asked the variable to be placed into different memory space (program memory). So the best bet here is to deny this optimization by checking GV->getType()->getAddressSpace() == 0. llvm-svn: 73605
-
- Jun 15, 2009
-
-
Owen Anderson authored
llvm-svn: 73412
-
Dan Gohman authored
llvm-svn: 73362
-
- Jun 14, 2009
-
-
Torok Edwin authored
llvm-svn: 73342
-
Owen Anderson authored
is that, for functions whose bodies are entirely guarded by an if-statement, it can be profitable to pull the test out of the callee and into the caller. This code has had some cursory testing, but still has a number of known issues on the LLVM test suite. llvm-svn: 73338
-
- Jun 13, 2009
-
-
Nick Lewycky authored
pointer. This fixes kimwitu++. Pointed out by Frits van Bommel on review! llvm-svn: 73299
-
- Jun 12, 2009
-
-
Dan Gohman authored
the relationship with MergeFunctions.cpp's isEquivalentOperation, and make a trivial code reordering so that the two functions are easier to compare. Fix the name of Instruction::isSameOperationAs in MergeFunction.cpp's isEquivalentOperation's comment, and fix a nearby 80-column violation. llvm-svn: 73241
-
Nick Lewycky authored
llvm-svn: 73235
-
Nick Lewycky authored
llvm-svn: 73231
-
Nick Lewycky authored
thunks. llvm-svn: 73230
-
Nick Lewycky authored
points to while analyzing all other fields. Use FoldingSetNodeID to produce a good hash. This dramatically decreases run times. Emit thunks. This means that it can look at all functions regardless of what the linkage is or if the address is taken, but unfortunately some small functions can be even shorter than the thunk because our backend doesn't yet realize it can just turn these into jumps. This means that this pass will pessimize code on average. llvm-svn: 73222
-
- Jun 10, 2009
-
-
Jay Foad authored
llvm-svn: 73164
-
- Jun 09, 2009
-
-
Jay Foad authored
identical function ConstantIsDead() to SafeToDestroyConstant(), to emphasise the connection with Constant::destroyConstant(). llvm-svn: 73149
-
- Jun 06, 2009
-
-
Jay Foad authored
Instructions. llvm-svn: 73002
-
- Jun 02, 2009
-
-
Evan Cheng authored
Avoid infinite looping in AllGlobalLoadUsesSimpleEnoughForHeapSRA(). This can happen when PHI uses are recursively dependent on each other. llvm-svn: 72710
-
- May 23, 2009
-
-
Torok Edwin authored
and it wasn't generating calls through @PLT for these functions. hasLocalLinkage() is now false for available_externally, I attempted to fix the inliner and dce to handle available_externally properly. It passed make check. llvm-svn: 72328
-