llvm-6502/lib
Chandler Carruth 50bc165c54 [SROA] Fix PR18615 with some long overdue simplifications to the bounds
checking in SROA.

The primary change is to just rely on uge for checking that the offset
is within the allocation size. This removes the explicit checks against
isNegative which were terribly error prone (including the reversed logic
that led to PR18615) and prevented us from supporting stack allocations
larger than half the address space.... Ok, so maybe the latter isn't
*common* but it's a silly restriction to have.

Also, we used to try to support a PHI node which loaded from before the
start of the allocation if any of the loaded bytes were within the
allocation. This doesn't make any sense, we have never really supported
loading or storing *before* the allocation starts. The simplified logic
just doesn't care.

We continue to allow loading past the end of the allocation in part to
support cases where there is a PHI and some loads are larger than others
and the larger ones reach past the end of the allocation. We could solve
this a different and more conservative way, but I'm still somewhat
paranoid about this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202224 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-26 03:14:14 +00:00
..
Analysis Constify the Optnone checks in IR passes. 2014-02-26 01:23:26 +00:00
AsmParser
Bitcode Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
CodeGen 80-col. 2014-02-26 02:53:18 +00:00
DebugInfo llvm-dwarfdump: Support for debug_line.dwo section for file names for type units under fission. 2014-02-24 23:58:54 +00:00
ExecutionEngine Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
IR Remove spurious emacs major mode marker, these should only go on .h files. 2014-02-26 03:10:45 +00:00
IRReader
LineEditor
Linker Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
LTO Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
MC Reuse constants for COFF string table entry offsets 2014-02-25 09:50:40 +00:00
Object Simplify base64 routine a bit. 2014-02-25 23:49:11 +00:00
Option
Support Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
TableGen Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
Target Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Transforms [SROA] Fix PR18615 with some long overdue simplifications to the bounds 2014-02-26 03:14:14 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile