llvm-6502/lib
Bob Wilson 73a1b67cb9 Revise scalar replacement to be more flexible about handle bitcasts and GEPs.
While scanning through the uses of an alloca, keep track of the current offset
relative to the start of the alloca, and check memory references to see if
the offset & size correspond to a component within the alloca.  This has the
nice benefit of unifying much of the code from isSafeUseOfAllocation,
isSafeElementUse, and isSafeUseOfBitCastedAllocation.  The code to rewrite
the uses of a promoted alloca, after it is determined to be safe, is
reorganized in the same way.

Also, when rewriting GEP instructions, mark them as "in-bounds" since all the
indices are known to be safe.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91184 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:47:40 +00:00
..
Analysis Make getUniqueExitBlocks's precondition assert more precise, to 2009-12-11 20:05:23 +00:00
Archive
AsmParser Add MSP430 interrupt calling conv. No functionality change yet. 2009-12-07 02:27:35 +00:00
Bitcode Re-commit r86077 now that r86290 fixes the 179.art and 175.vpr ARM regressions. 2009-11-07 00:16:28 +00:00
CodeGen Delete an unnecessary line. The VTSDNode on a SIGN_EXTEND_REG is never 2009-12-11 23:26:08 +00:00
CompilerDriver Fix last DOTGraphTraits problems in CompilationGraph. 2009-11-30 13:34:51 +00:00
ExecutionEngine Comparing std::string with NULL is a bad idea, so just check whether its empty. 2009-12-10 10:01:47 +00:00
Linker Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a lame API. 2009-11-10 00:43:58 +00:00
MC Pass StringRef by value. 2009-11-06 10:58:06 +00:00
Support DeltaAlgorithm: Add a virtual destructor and home. 2009-12-09 07:19:48 +00:00
System Remove spurious extern. 2009-12-09 03:26:33 +00:00
Target Lower setcc branchless, if this is profitable. 2009-12-11 23:01:29 +00:00
Transforms Revise scalar replacement to be more flexible about handle bitcasts and GEPs. 2009-12-11 23:47:40 +00:00
VMCore Add utility method for determining whether a function argument 2009-12-11 08:36:17 +00:00
Makefile remove llvm-db: it is completely broken and if anyone wants to do a debugger, 2009-10-05 02:29:51 +00:00