IR: Revert r223618 behaviour of MDNode::concatenate()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 7 Dec 2014 20:32:11 +0000 (20:32 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 7 Dec 2014 20:32:11 +0000 (20:32 +0000)
commit9c51b50a714d06561ac69dc30c394cb3fcef5bb8
tree519ba4e239f79545f8b8e1e3a9d0f3e48430675f
parentac8ee289eb5438bdc222252f3e45f156c6b6730e
IR: Revert r223618 behaviour of MDNode::concatenate()

r223618 including special handling of `MDNode::intersect()`: if the
first operand is a self-reference with the same operands you're trying
to return, return it instead.

Reuse that handling in `MDNode::concatenate()` in the hopes that it
fixes a polly test that seems to rely on the old behaviour [1].

[1]: http://lab.llvm.org:8011/builders/polly-amd64-linux/builds/25167

llvm-svn: 223619
llvm/lib/IR/Metadata.cpp