mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,8 +39,8 @@ for.end: ; preds = %for.body
|
||||
}
|
||||
|
||||
; Now, we check for the Hint metadata
|
||||
; CHECK: [[vect]] = !{[[vect]], [[width:![0-9]+]], [[unroll:![0-9]+]]}
|
||||
; CHECK: [[vect]] = distinct !{[[vect]], [[width:![0-9]+]], [[unroll:![0-9]+]]}
|
||||
; CHECK: [[width]] = !{!"llvm.loop.vectorize.width", i32 1}
|
||||
; CHECK: [[unroll]] = !{!"llvm.loop.interleave.count", i32 1}
|
||||
; CHECK: [[scalar]] = !{[[scalar]], [[width]], [[unroll]]}
|
||||
; CHECK: [[scalar]] = distinct !{[[scalar]], [[width]], [[unroll]]}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user