llvm-6502/test/Transforms/GVN
Duncan P. N. Exon Smith 1ef70ff39b IR: Make metadata typeless in assembly
Now that `Metadata` is typeless, reflect that in the assembly.  These
are the matching assembly changes for the metadata/value split in
r223802.

  - Only use the `metadata` type when referencing metadata from a call
    intrinsic -- i.e., only when it's used as a `Value`.

  - Stop pretending that `ValueAsMetadata` is wrapped in an `MDNode`
    when referencing it from call intrinsics.

So, assembly like this:

    define @foo(i32 %v) {
      call void @llvm.foo(metadata !{i32 %v}, metadata !0)
      call void @llvm.foo(metadata !{i32 7}, metadata !0)
      call void @llvm.foo(metadata !1, metadata !0)
      call void @llvm.foo(metadata !3, metadata !0)
      call void @llvm.foo(metadata !{metadata !3}, metadata !0)
      ret void, !bar !2
    }
    !0 = metadata !{metadata !2}
    !1 = metadata !{i32* @global}
    !2 = metadata !{metadata !3}
    !3 = metadata !{}

turns into this:

    define @foo(i32 %v) {
      call void @llvm.foo(metadata i32 %v, metadata !0)
      call void @llvm.foo(metadata i32 7, metadata !0)
      call void @llvm.foo(metadata i32* @global, metadata !0)
      call void @llvm.foo(metadata !3, metadata !0)
      call void @llvm.foo(metadata !{!3}, metadata !0)
      ret void, !bar !2
    }
    !0 = !{!2}
    !1 = !{i32* @global}
    !2 = !{!3}
    !3 = !{}

I wrote an upgrade script that handled almost all of the tests in llvm
and many of the tests in cfe (even handling many `CHECK` lines).  I've
attached it (or will attach it in a moment if you're speedy) to PR21532
to help everyone update their out-of-tree testcases.

This is part of PR21532.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224257 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-15 19:07:53 +00:00
..
2007-07-25-DominatedLoop.ll
2007-07-25-InfiniteLoop.ll
2007-07-25-Loop.ll
2007-07-25-NestedLoop.ll
2007-07-25-SinglePredecessor.ll
2007-07-26-InterlockingLoops.ll
2007-07-26-NonRedundant.ll
2007-07-26-PhiErasure.ll
2007-07-30-PredIDom.ll
2007-07-31-NoDomInherit.ll
2007-07-31-RedundantPhi.ll
2008-02-12-UndefLoad.ll
2008-02-13-NewPHI.ll
2008-07-02-Unreachable.ll
2008-12-09-SelfRemove.ll
2008-12-12-RLE-Crash.ll
2008-12-14-rle-reanalyze.ll
2008-12-15-CacheVisited.ll
2009-01-21-SortInvalidation.ll
2009-01-22-SortInvalidation.ll
2009-02-17-LoadPRECrash.ll
2009-03-10-PREOnVoid.ll Use "weak alias" instead of "alias weak" 2014-07-30 22:51:54 +00:00
2009-06-17-InvalidPRE.ll
2009-07-13-MemDepSortFail.ll
2009-11-12-MemDepMallocBitCast.ll
2010-03-31-RedundantPHIs.ll
2010-05-08-OneBit.ll
2010-11-13-Simplify.ll
2011-04-27-phioperands.ll
2011-06-01-NonLocalMemdepMiscompile.ll
2011-07-07-MatchIntrinsicExtract.ll
2011-09-07-TypeIdFor.ll
2012-05-22-PreCrash.ll
atomic.ll Relax the constraint more in MemoryDependencyAnalysis.cpp 2014-08-29 20:32:58 +00:00
basic.ll
bitcast-of-call.ll
calloc-load-removal.ll GVN: Enable value forwarding for calloc 2014-06-12 21:16:19 +00:00
calls-nonlocal.ll
calls-readonly.ll
commute.ll
cond_br2.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
cond_br.ll
condprop.ll
crash-no-aa.ll
crash.ll
edge.ll
fpmath.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
invariant-load.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
lifetime-simple.ll
load-constant-mem.ll
load-from-unreachable-predecessor.ll Relax an assert a bit to avoid a crash on unreachable code. 2014-12-01 02:55:24 +00:00
load-pre-align.ll
load-pre-licm.ll
load-pre-nonlocal.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
local-pre.ll
lpre-call-wrap-2.ll
lpre-call-wrap.ll
malloc-load-removal.ll
MemdepMiscompile.ll
noalias.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
non-local-offset.ll
nonescaping-malloc.ll
null-aliases-nothing.ll
phi-translate-partial-alias.ll
phi-translate.ll
pr10820.ll
pr12979.ll
pr14166.ll
pr17732.ll
pr17852.ll
pre-basic-add.ll
pre-compare.ll
pre-load.ll
pre-single-pred.ll
preserve-tbaa.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
range.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
readattrs.ll
rle-must-alias.ll
rle-no-phi-translate.ll
rle-nonlocal.ll
rle-phi-translate.ll
rle-semidominated.ll
rle.ll Look through addrspacecast in GetPointerBaseWithConstantOffset 2014-07-14 22:39:22 +00:00
tbaa.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
unreachable_block_infinite_loop.ll