llvm-6502/lib
Bob Wilson 8308e8fae0 Revert a portion of Dan's change r71018 that I'm convinced is wrong.
Dan was trying to catch the case where a basic block ends with a conditional
branch to the fall-through block.  In this case, all the instructions have
been moved out of FromBBI, leaving it empty.  It cannot end with a
conditional branch.  As the existing comment indicates, it will always fall
through to the next block.  If the block already had the next block (NBB)
listed as a successor, the preceding loop has a check for that and does not
remove it.  Thus, we need to check and add the successor only when it is
not already listed.

With Dan's change, the empty block often ends up with the fall-through
successor listed twice.  This exposed the problem in pr4195, where
CodePlacementOpt did not handle the same predecessor listed more than once.
It is also at least partially responsible for pr4202 and probably a similar
issue with Thumb branches being out of range.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71742 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-13 23:48:58 +00:00
..
Analysis Avoid getting a compiler warning 2009-05-13 12:52:44 +00:00
Archive
AsmParser Make MDNode use CallbackVH. Also change MDNode to store Value* instead of 2009-05-10 20:57:05 +00:00
Bitcode Make MDNode use CallbackVH. Also change MDNode to store Value* instead of 2009-05-10 20:57:05 +00:00
CodeGen Revert a portion of Dan's change r71018 that I'm convinced is wrong. 2009-05-13 23:48:58 +00:00
CompilerDriver
Debugger
ExecutionEngine Rename PaddedSize to AllocSize, in the hope that this 2009-05-09 07:06:46 +00:00
Linker Add a new "available_externally" linkage type. This is intended 2009-04-13 05:44:34 +00:00
Support Fix whitespacing (space after switch). 2009-05-13 23:23:20 +00:00
System Add terminal width detection to llvm::sys::Process. This is needed to 2009-05-11 18:05:52 +00:00
Target Spelling correction s/builting/builtin/ and remove trailing whitespace in a few places 2009-05-13 22:32:43 +00:00
Transforms Handle some additonal cases of external weak globals. 2009-05-13 20:55:30 +00:00
VMCore Needed #includes. Thanks Fritz van Bommel! 2009-05-10 23:27:41 +00:00
Makefile