#
fbcc663c |
| 14-Jul-2009 |
Torok Edwin <edwintorok@gmail.com> |
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location i
llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 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
show more ...
|
#
ccb29cd2 |
| 11-Jul-2009 |
Torok Edwin <edwintorok@gmail.com> |
Convert more assert(0)+abort() -> LLVM_UNREACHABLE, and abort()/exit() -> llvm_report_error().
llvm-svn: 75363
|
#
1e5f00e7 |
| 09-Jul-2009 |
Owen Anderson <resistor@mac.com> |
This started as a small change, I swear. Unfortunately, lots of things call the [I|F]CmpInst constructors. Who knew!?
llvm-svn: 75200
|
#
e70b6370 |
| 05-Jul-2009 |
Owen Anderson <resistor@mac.com> |
More LLVMContext-ification.
llvm-svn: 74807
|
#
48f82222 |
| 04-May-2009 |
Dan Gohman <gohman@apple.com> |
Re-apply 70645, converting ScalarEvolution to use CallbackVH, with fixes. allUsesReplacedWith need to walk the def-use chains and invalidate all users of a value that is replaced. SCEVs of users need
Re-apply 70645, converting ScalarEvolution to use CallbackVH, with fixes. allUsesReplacedWith need to walk the def-use chains and invalidate all users of a value that is replaced. SCEVs of users need to be recalcualted even if the new value is equivalent. Also, make forgetLoopPHIs walk def-use chains, since any SCEV that depends on a PHI should be recalculated when more information about that PHI becomes available.
llvm-svn: 70927
show more ...
|
#
351134ba |
| 04-May-2009 |
Chris Lattner <sabre@nondot.org> |
Factor loop backedge finding out of CodeGenPrepare into a new FindFunctionBackedges function.
llvm-svn: 70819
|
#
5036695c |
| 03-May-2009 |
Dan Gohman <gohman@apple.com> |
Revert r70645 for now; it's causing a variety of regressions.
llvm-svn: 70661
|
#
e9a38d16 |
| 02-May-2009 |
Dan Gohman <gohman@apple.com> |
Convert ScalarEvolution to use CallbackVH for its internal map. This makes ScalarEvolution::deleteValueFromRecords, and it's code that subtly needed to be called before ReplaceAllUsesWith, unnecessar
Convert ScalarEvolution to use CallbackVH for its internal map. This makes ScalarEvolution::deleteValueFromRecords, and it's code that subtly needed to be called before ReplaceAllUsesWith, unnecessary.
It also makes ValueDeletionListener unnecessary.
llvm-svn: 70645
show more ...
|
#
ff089955 |
| 02-May-2009 |
Dan Gohman <gohman@apple.com> |
Previously, RecursivelyDeleteDeadInstructions provided an option of returning a list of pointers to Values that are deleted. This was unsafe, because the pointers in the list are, by nature of what R
Previously, RecursivelyDeleteDeadInstructions provided an option of returning a list of pointers to Values that are deleted. This was unsafe, because the pointers in the list are, by nature of what RecursivelyDeleteDeadInstructions does, always dangling. Replace this with a simple callback mechanism. This may eventually be removed if all clients can reasonably be expected to use CallbackVH.
Use this to factor out the dead-phi-cycle-elimination code from LSR utility function, and generalize it to use the RecursivelyDeleteTriviallyDeadInstructions utility function.
This makes LSR more aggressive about eliminating dead PHI cycles; adjust tests to either be less trivial or to simply expect fewer instructions.
llvm-svn: 70636
show more ...
|
#
d71c2008 |
| 04-Mar-2009 |
Dale Johannesen <dalej@apple.com> |
Skip ptr-to-ptr bitcasts when counting in another case.
llvm-svn: 66000
|
#
09c3e8ec |
| 03-Mar-2009 |
Dale Johannesen <dalej@apple.com> |
Instruction counters must skip the bitcasts that feed into llvm.dbg.declare nodes, as well as the debug directives themselves.
llvm-svn: 65976
|
#
77456b7a |
| 03-Mar-2009 |
Dale Johannesen <dalej@apple.com> |
When removing a store to an alloca that has only one use, check also for the case where it has two uses, the other being a llvm.dbg.declare. This is needed so debug info doesn't affect codegen.
llv
When removing a store to an alloca that has only one use, check also for the case where it has two uses, the other being a llvm.dbg.declare. This is needed so debug info doesn't affect codegen.
llvm-svn: 65970
show more ...
|
Revision tags: llvmorg-2.5.0 |
|
#
92b551bc |
| 03-Mar-2009 |
Dan Gohman <gohman@apple.com> |
Fix a bunch of Doxygen syntax issues. Escape special characters, and put @file directives on their own comment line.
llvm-svn: 65920
|
#
e1bb2f86 |
| 03-Mar-2009 |
Dale Johannesen <dalej@apple.com> |
When sinking an insn in InstCombine bring its debug info with it. Don't count debug info insns against the scan maximum in FindAvailableLoadedValue (lest they affect codegen).
llvm-svn: 65910
|
#
e2880826 |
| 24-Feb-2009 |
Devang Patel <dpatel@apple.com> |
While folding unconditional return move DbgRegionEndInst into the predecessor, instead of removing it. This fixes following tests from llvmgcc42 testsuite.
gcc.c-torture/execute/20000605-3.c gcc.c-t
While folding unconditional return move DbgRegionEndInst into the predecessor, instead of removing it. This fixes following tests from llvmgcc42 testsuite.
gcc.c-torture/execute/20000605-3.c gcc.c-torture/execute/20020619-1.c gcc.c-torture/execute/20030920-1.c gcc.c-torture/execute/loop-ivopts-1.c
llvm-svn: 65353
show more ...
|
#
31670502 |
| 11-Feb-2009 |
Devang Patel <dpatel@apple.com> |
If llvm.dbg.region.end is disappearing then remove corresponding llvm.dbg.func.start also.
llvm-svn: 64278
|
#
5a913d61 |
| 28-Jan-2009 |
Duncan Sands <baldrick@free.fr> |
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
llvm-svn: 63198
|
#
dc3f6f2c |
| 03-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
Factor some code into a new FoldSingleEntryPHINodes method.
llvm-svn: 60501
|
#
37e0136f |
| 03-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
third time is the charm.
llvm-svn: 60469
|
#
c04a1ffa |
| 03-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
fix assertion.
llvm-svn: 60468
|
#
7eb270ed |
| 03-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
Rename DeleteBlockIfDead to DeleteDeadBlock and make it unconditionally delete the block. All likely clients will do the checking anyway.
llvm-svn: 60464
|
#
bcc904a6 |
| 03-Dec-2008 |
Chris Lattner <sabre@nondot.org> |
Factor some code out of SimplifyCFG, forming a new DeleteBlockIfDead method.
llvm-svn: 60463
|
#
e0d019de |
| 27-Nov-2008 |
Chris Lattner <sabre@nondot.org> |
switch InstCombine::visitLoadInst to use FindAvailableLoadedValue
llvm-svn: 60169
|
#
c6ae56d2 |
| 27-Nov-2008 |
Chris Lattner <sabre@nondot.org> |
enhance FindAvailableLoadedValue to make use of AliasAnalysis if it has it.
llvm-svn: 60167
|
#
72f16e70 |
| 27-Nov-2008 |
Chris Lattner <sabre@nondot.org> |
move FindAvailableLoadedValue from JumpThreading to Transforms/Utils.
llvm-svn: 60166
|