- 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
-
Dan Gohman authored
function. llvm-svn: 75584
-
- Jul 13, 2009
-
-
Owen Anderson authored
llvm-svn: 75497
-
Owen Anderson authored
Begin the painful process of tearing apart the rat'ss nest that is Constants.cpp and ConstantFold.cpp. This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's the only way I could figure out to make this process vaguely incremental. llvm-svn: 75445
-
- Jul 12, 2009
-
-
Chris Lattner authored
llvm-svn: 75393
-
- 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
-
Torok Edwin authored
and abort()/exit() -> llvm_report_error(). llvm-svn: 75363
-
- Jul 10, 2009
-
-
Owen Anderson authored
llvm-svn: 75255
-
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 09, 2009
-
-
Nick Lewycky authored
we're inserting sigma/phi functions for. Patch by Andre Tavares. llvm-svn: 75138
-
Nick Lewycky authored
Add an -ssi-everything pass which calls createSSI on everything in the function. llvm-svn: 75135
-
- Jul 08, 2009
-
-
Owen Anderson authored
llvm-svn: 75025
-
Owen Anderson authored
llvm-svn: 74985
-
- Jul 07, 2009
-
-
Owen Anderson authored
llvm-svn: 74878
-
- Jul 06, 2009
-
-
Owen Anderson authored
llvm-svn: 74844
-
Owen Anderson authored
llvm-svn: 74807
-
- Jul 04, 2009
-
-
Mike Stump authored
llvm-svn: 74782
-
- Jul 03, 2009
-
-
Nick Lewycky authored
Use it by requiring it through the pass manager, then calling its createSSI method on the variables that you want in SSI form. llvm-svn: 74780
-
- Jul 01, 2009
-
-
Owen Anderson authored
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
-
Chris Lattner authored
to not have to create a temporary vector (in the API at least). Patch by Jay Foad! llvm-svn: 74584
-
- Jun 30, 2009
-
-
Dan Gohman authored
llvm-svn: 74491
-
- Jun 28, 2009
-
-
Dan Gohman authored
LoopInfo will handle removing it from the Loop, as well as updating its own tables. llvm-svn: 74398
-
- Jun 27, 2009
-
-
Dan Gohman authored
when one of them can be converted to a trivial icmp and conditional branch. This addresses what is essentially a phase ordering problem. SimplifyCFG knows how to do this transformation, but it doesn't do so if the primary block has any instructions in it other than an icmp and a branch. In the given testcase, the block contains other instructions, however they are loop-invariant and can be hoisted. SimplifyCFG doesn't have LoopInfo though, so it can't hoist them. And, it's important that the blocks be merged before LoopRotation, as it doesn't support multiple-exit loops. llvm-svn: 74396
-
Devang Patel authored
llvm-svn: 74351
-
- Jun 26, 2009
-
-
Douglas Gregor authored
llvm-svn: 74285
-
Dan Gohman authored
an invoke instruction, since the value isn't really live across that edge. llvm-svn: 74242
-
- Jun 16, 2009
-
-
Chris Lattner authored
to ignore readonly calls, and factor it out of instcombine so that it can be used by other passes. Patch by Frits van Bommel! llvm-svn: 73506
-
- Jun 15, 2009
-
-
Dale Johannesen authored
problem addressed in 31284, but the patch there only addressed the case where an invoke is the first thing in a block. llvm-svn: 73416
-
Dan Gohman authored
llvm-svn: 73362
-
- Jun 05, 2009
-
-
Dan Gohman authored
integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897
-
- May 30, 2009
-
-
Nick Lewycky authored
llvm-svn: 72610
-
- 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
-
- May 19, 2009
-
-
Dan Gohman authored
instructions. It attempts to create high-level multi-operand GEPs, though in cases where this isn't possible it falls back to casting the pointer to i8* and emitting a GEP with that. Using GEP instructions instead of ptrtoint+arithmetic+inttoptr helps pointer analyses that don't use ScalarEvolution, such as BasicAliasAnalysis. Also, make the AddrModeMatcher more aggressive in handling GEPs. Previously it assumed that operand 0 of a GEP would require a register in almost all cases. It now does extra checking and can do more matching if operand 0 of the GEP is foldable. This fixes a problem that was exposed by SCEVExpander using GEPs. llvm-svn: 72093
-
- May 14, 2009
-
-
Dale Johannesen authored
adding another copy. llvm-svn: 71783
-
- May 13, 2009
-
-
Dale Johannesen authored
llvm-svn: 71717
-
Dale Johannesen authored
external. These may have address 0 and are not safe to execute unconditionally. llvm-svn: 71688
-
- May 09, 2009
-
-
Duncan Sands authored
will make it more obvious what it represents, and stop it being confused with the StoreSize. llvm-svn: 71349
-
- May 08, 2009
-
-
Eli Friedman authored
llvm-svn: 71199
-
- May 06, 2009
-
-
Dan Gohman authored
separate back() and pop_back() calls. llvm-svn: 71089
-
Duncan Sands authored
the optimizers about this. For example, a readonly function with no uses cannot be removed unless it is also marked nounwind. llvm-svn: 71071
-