llvm/test/Assembler/no-mdstring-upgrades.ll
Duncan P. N. Exon Smith 7ad5ddeb72 IR: Stop upgrading !llvm.loop attachments via MDString
Remove logic to upgrade !llvm.loop by changing the MDString tag
directly.  This old logic would check (and change) arbitrary strings
that had nothing to do with loop metadata.  Instead, check !llvm.loop
attachments directly, and change which strings get attached.

Rather than updating the assembly-based upgrade, drop it entirely.  It
has been quite a while since we supported upgrading textual IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264373 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-25 00:56:13 +00:00

11 lines
338 B
LLVM

; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
; Make sure arbitrary metadata strings don't get mutated. These may be
; (strange) filenames that are part of debug info.
; CHECK: !named = !{!0}
!named = !{!0}
; CHECK: !0 = !{!"llvm.vectorizer.unroll"}
!0 = !{!"llvm.vectorizer.unroll"}