IR: Stop upgrading !llvm.loop attachments via MDString
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:56:13 +0000 (00:56 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:56:13 +0000 (00:56 +0000)
commitefe16c8eb4fa5450fba4a1465e01620ba6c2c402
treeb39831ecf389341074bbc0917784200f85816530
parentf72d5b608dacc1d4184d848cde3d8ca480df43cc
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.

llvm-svn: 264373
llvm/include/llvm/IR/AutoUpgrade.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/AutoUpgrade.cpp
llvm/test/Assembler/no-mdstring-upgrades.ll [new file with mode: 0644]
llvm/test/Assembler/upgrade-loop-metadata.ll [deleted file]