From 090a19bd3cab8b4247bb41eecf20e9f0f211332b Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 8 Jan 2015 22:38:29 +0000 Subject: IR: Add 'distinct' MDNodes to bitcode and assembly Propagate whether `MDNode`s are 'distinct' through the other types of IR (assembly and bitcode). This adds the `distinct` keyword to assembly. Currently, no one actually calls `MDNode::getDistinct()`, so these nodes only get created for: - self-references, which are never uniqued, and - nodes whose operands are replaced that hit a uniquing collision. The concept of distinct nodes is still not quite first-class, since distinct-ness doesn't yet survive across `MapMetadata()`. Part of PR22111. llvm-svn: 225474 --- llvm/test/Transforms/LoopUnroll/runtime-loop.ll | 2 +- llvm/test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/test/Transforms/LoopUnroll') diff --git a/llvm/test/Transforms/LoopUnroll/runtime-loop.ll b/llvm/test/Transforms/LoopUnroll/runtime-loop.ll index 925c3e2a360..3a8777bb147 100644 --- a/llvm/test/Transforms/LoopUnroll/runtime-loop.ll +++ b/llvm/test/Transforms/LoopUnroll/runtime-loop.ll @@ -115,6 +115,6 @@ for.end: ; preds = %for.cond.for.end_cr ret i16 %res.0.lcssa } -; CHECK: !0 = !{!0, !1} +; CHECK: !0 = distinct !{!0, !1} ; CHECK: !1 = !{!"llvm.loop.unroll.disable"} diff --git a/llvm/test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll b/llvm/test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll index 748a49e8ff4..4f934a688be 100644 --- a/llvm/test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll +++ b/llvm/test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll @@ -138,12 +138,12 @@ for.inc5.1: ; preds = %for.body3.1 !10 = !{!"llvm.loop.unroll.count", i32 2} -; CHECK: ![[LOOP_1]] = !{![[LOOP_1]], ![[VEC_ENABLE:.*]], ![[WIDTH_8:.*]], ![[UNROLL_DISABLE:.*]]} +; CHECK: ![[LOOP_1]] = distinct !{![[LOOP_1]], ![[VEC_ENABLE:.*]], ![[WIDTH_8:.*]], ![[UNROLL_DISABLE:.*]]} ; CHECK: ![[VEC_ENABLE]] = !{!"llvm.loop.vectorize.enable", i1 true} ; CHECK: ![[WIDTH_8]] = !{!"llvm.loop.vectorize.width", i32 8} ; CHECK: ![[UNROLL_DISABLE]] = !{!"llvm.loop.unroll.disable"} -; CHECK: ![[LOOP_2]] = !{![[LOOP_2]], ![[UNROLL_FULL:.*]]} +; CHECK: ![[LOOP_2]] = distinct !{![[LOOP_2]], ![[UNROLL_FULL:.*]]} ; CHECK: ![[UNROLL_FULL]] = !{!"llvm.loop.unroll.full"} -; CHECK: ![[LOOP_3]] = !{![[LOOP_3]], ![[UNROLL_DISABLE:.*]]} -; CHECK: ![[LOOP_4]] = !{![[LOOP_4]], ![[UNROLL_DISABLE:.*]]} -; CHECK: ![[LOOP_5]] = !{![[LOOP_5]], ![[UNROLL_DISABLE:.*]]} +; CHECK: ![[LOOP_3]] = distinct !{![[LOOP_3]], ![[UNROLL_DISABLE:.*]]} +; CHECK: ![[LOOP_4]] = distinct !{![[LOOP_4]], ![[UNROLL_DISABLE:.*]]} +; CHECK: ![[LOOP_5]] = distinct !{![[LOOP_5]], ![[UNROLL_DISABLE:.*]]} -- cgit v1.2.3