llvm-6502/lib
Chandler Carruth f1a60c734c Fix updateTerminator to be resiliant to degenerate terminators where
both fallthrough and a conditional branch target the same successor.
Gracefully delete the conditional branch and introduce any unconditional
branch needed to reach the actual successor. This fixes memory
corruption in 2009-06-15-RegScavengerAssert.ll and possibly other tests.

Also, while I'm here fix a latent bug I spotted by inspection. I never
applied the same fundamental fix to this fallthrough successor finding
logic that I did to the logic used when there are no conditional
branches. As a consequence it would have selected landing pads had they
be aligned in just the right way here. I don't have a test case as
I spotted this by inspection, and the previous time I found this
required have of TableGen's source code to produce it. =/ I hate backend
bugs. ;]

Thanks to Jim Grosbach for helping me reason through this and reviewing
the fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154867 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-16 22:03:00 +00:00
..
Analysis Add two statistics to help track how we are computing the inline cost. 2012-04-11 10:15:10 +00:00
Archive
AsmParser
Bitcode
CodeGen Fix updateTerminator to be resiliant to degenerate terminators where 2012-04-16 22:03:00 +00:00
DebugInfo Fix a C++11 UDL conflict. 2012-04-04 20:33:56 +00:00
ExecutionEngine This patch improves the MCJIT runtime dynamic loader by adding new handling 2012-04-12 20:13:57 +00:00
Linker
MC MC assembly parser handling for trailing comma in macro instantiation. 2012-04-16 21:18:49 +00:00
Object Remove unused variable. 2012-04-13 08:09:12 +00:00
Support Reapply 'Add reverseColor to raw_ostream'. 2012-04-16 08:56:50 +00:00
TableGen
Target ARM handle :lower16: and :upper16: after a '#' prefix. 2012-04-16 21:18:46 +00:00
Transforms Fix style violation in BBVectorize (pointed out by Bill Wendling) 2012-04-16 12:39:17 +00:00
VMCore Remove support for the special 'fast' value for fpmath accuracy for the moment. 2012-04-16 19:39:33 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile