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
CodeGen Delete an unnecessary line. The VTSDNode on a SIGN_EXTEND_REG is never 2009-12-11 23:26:08 +00:00
CompilerDriver
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
MC
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