llvm-6502/lib/Transforms/Scalar
Richard Osborne dd2fb6c10b Fix assertion in jump threading (PR13405).
GetBestDestForJumpOnUndef() assumes there is at least 1 successor, which isn't
true if the block ends in an indirect branch with no successors. Fix this by
bailing out earlier in this case.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160546 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-20 10:36:17 +00:00
..
ADCE.cpp
BasicBlockPlacement.cpp
BoundsChecking.cpp BoundsChecking: optimize out the check for offset < 0 if size is known to be >= 0 (signed). 2012-07-03 17:30:18 +00:00
CMakeLists.txt
CodeGenPrepare.cpp CodeGenPrepare: Don't crash when TLI is not available. 2012-06-29 19:58:21 +00:00
ConstantProp.cpp
CorrelatedValuePropagation.cpp
DCE.cpp
DeadStoreElimination.cpp
EarlyCSE.cpp
GlobalMerge.cpp
GVN.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
IndVarSimplify.cpp indvars: drive by heuristics fix. 2012-07-18 04:35:13 +00:00
JumpThreading.cpp Fix assertion in jump threading (PR13405). 2012-07-20 10:36:17 +00:00
LICM.cpp
LLVMBuild.txt
LoopDeletion.cpp
LoopIdiomRecognize.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
LoopInstSimplify.cpp
LoopRotation.cpp
LoopStrengthReduce.cpp Reapply r160340. LSR: Limit CollectSubexprs. 2012-07-17 05:30:37 +00:00
LoopUnrollPass.cpp
LoopUnswitch.cpp
LowerAtomic.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
Makefile
MemCpyOptimizer.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
ObjCARC.cpp
Reassociate.cpp Rework this to clarify where the removal of nodes from the queue is 2012-06-29 19:03:05 +00:00
Reg2Mem.cpp
Scalar.cpp
ScalarReplAggregates.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
SCCP.cpp
SimplifyCFGPass.cpp fix PR13339 (remove the predecessor from the unwind BB when removing an invoke) 2012-07-16 22:49:40 +00:00
SimplifyLibCalls.cpp Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h 2012-06-29 12:38:19 +00:00
Sink.cpp
TailRecursionElimination.cpp