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)
commit8ecb7e224316b318dfa25266766e6d136a67b7d9
tree180dcbcdb7957d1b76bd29778c1be5b3f83a0299
parent7280d8ccceaebd2d78d233f5852dd67cae9a704d
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223619 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Metadata.cpp