llvm-6502/test
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 gvn is optimizing this better now. 2009-12-06 04:16:05 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Lower setcc branchless, if this is profitable. 2009-12-11 23:01:29 +00:00
DebugInfo Remove tests that are not suitable anymore. Plus they are not testing the original bugfixes anymore. These tests were inserted to check bug fixes in code that handled debug info intrinsics. These intrinsics are no longer used and now llvm parser simply ignores old .dbg intrinsics from these dead tests. 2009-12-09 01:46:00 +00:00
ExecutionEngine
Feature
FrontendAda
FrontendC Test case for 90787. 2009-12-07 19:42:22 +00:00
FrontendC++ Fix this code to use DIScope instead of DICompileUnit, as in r90181. 2009-12-05 00:23:29 +00:00
FrontendFortran
FrontendObjC Remove now-redundant llvm-as invocations. 2009-12-05 00:02:37 +00:00
FrontendObjC++
Integer
lib
Linker
LLVMC Implement 'forward_value' and 'forward_transformed_value'. 2009-12-07 17:03:05 +00:00
MC
Other
Scripts
TableGen Fix pr5470. Tablegen handles template arguments by temporarily setting their 2009-11-22 03:58:57 +00:00
Transforms Revise scalar replacement to be more flexible about handle bitcasts and GEPs. 2009-12-11 23:47:40 +00:00
Unit CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files. 2009-12-08 19:47:36 +00:00
Verifier
CMakeLists.txt CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files. 2009-12-08 19:47:36 +00:00
lit.cfg CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files. 2009-12-08 19:47:36 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
site.exp.in
TestRunner.sh