llvm-6502/lib
Chandler Carruth ed1951e79f Fix an issue where SROA computed different results based on the relative
order of slices of the alloca which have exactly the same size and other
properties. This was found by a perniciously unstable sort
implementation used to flush out buggy uses of the algorithm.

The fundamental idea is that findCommonType should return the best
common type it can find across all of the slices in the range. There
were two bugs here previously:

1) We would accept an integer type smaller than a byte-width multiple,
   and if there were different bit-width integer types, we would accept
   the first one. This caused an actual failure in the testcase updated
   here when the sort order changed.
2) If we found a bad combination of types or a non-load, non-store use
   before an integer typed load or store we would bail, but if we found
   the integere typed load or store, we would use it. The correct
   behavior is to always use an integer typed operation which covers the
   partition if one exists.

While a clever debugging sort algorithm found problem #1 in our existing
test cases, I have no useful test case ideas for #2. I spotted in by
inspection when looking at this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195118 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-19 09:03:18 +00:00
..
Analysis The 'optnone' attribute means don't inline anything into this function 2013-11-18 21:44:03 +00:00
AsmParser Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
Bitcode Fix spacing, forward declare order. 2013-11-18 02:51:33 +00:00
CodeGen Fix patchpoint comments. 2013-11-19 05:05:43 +00:00
DebugInfo
ExecutionEngine [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
IR [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
IRReader
Linker
LTO Use array_pod_sort instead of std::sort 2013-11-16 16:15:56 +00:00
MC [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
Object Path: Recognize COFF import library file magic. 2013-11-15 21:22:02 +00:00
Option
Support [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
TableGen
Target Use symbolic operands in the patchpoint folding routine and fix a spilling bug. 2013-11-19 03:29:59 +00:00
Transforms Fix an issue where SROA computed different results based on the relative 2013-11-19 09:03:18 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile