llvm-6502/test
Duncan P. N. Exon Smith 3fdfffbfa3 GVN: Enable value forwarding for calloc
Enable value forwarding for loads from `calloc()` without an intervening
store.

This change extends GVN to handle the following case:

    %1 = tail call noalias i8* @calloc(i64 1, i64 4)
    %2 = bitcast i8* %1 to i32*
    ; This load is trivially constant zero
    %3 = load i32* %2, align 4

This is analogous to the handling for `malloc()` in the same places.
`malloc()` returns `undef`; `calloc()` returns a zero value.  Note that
it is correct to return zero even for out of bounds GEPs since the
result of such a GEP would be undefined.

Patch by Philip Reames!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210828 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-12 21:16:19 +00:00
..
Analysis Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Assembler Allow alias to point to an arbitrary ConstantExpr. 2014-06-03 02:41:57 +00:00
Bindings Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Bitcode Add a new attribute called 'jumptable' that creates jump-instruction tables for functions marked with this attribute. 2014-06-05 19:29:43 +00:00
BugPoint Revert r206989, "Mark llvm/test/BugPoint/compile-custom.ll as XFAIL:vg_leak." It has been fixed since r207265. 2014-04-27 11:59:33 +00:00
CodeGen R600: Mostly remove remaining AMDIL intrinsics. 2014-06-12 21:15:44 +00:00
DebugInfo [llvm-symbolizer] Fix parsing DW_AT_ranges in Fission skeleton compile unit DIEs. 2014-06-12 18:52:35 +00:00
ExecutionEngine Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Feature Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
FileCheck
Instrumentation Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Integer
JitListener
Linker Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
LTO Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
MC [mips][mips64r6] bc1[tf] are not available on MIPS32r6/MIPS64r6 2014-06-12 15:00:17 +00:00
Object Use std::error_code instead of llvm::error_code. 2014-06-11 19:05:50 +00:00
Other Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
TableGen Fix error in tablegen when either operand of !if is an empty list. 2014-06-10 20:10:08 +00:00
tools Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Transforms GVN: Enable value forwarding for calloc 2014-06-12 21:16:19 +00:00
Unit
Verifier Fix verifier for GlobalAliases to avoid recursing into global initializers. 2014-06-12 01:46:54 +00:00
YAMLParser
.clang-format
CMakeLists.txt OK, NAKAMURA Takumi beat me to this change. So backing out my addition of 2014-05-19 23:26:51 +00:00
lit.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
lit.site.cfg.in
Makefile lld test for configure & make 2014-06-06 09:06:25 +00:00
Makefile.tests
TestRunner.sh