Teach BBVectorize to combine, when possible, or discard metadata when fusing instruct...
authorHal Finkel <hfinkel@anl.gov>
Sat, 16 Jun 2012 20:34:06 +0000 (20:34 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 16 Jun 2012 20:34:06 +0000 (20:34 +0000)
commitab4684e26fe21857d8c8bc6ba7a5234c35117c83
tree8d637510704bb283fb03238d20633550f3bc02a3
parent7b4ff9343d911a1b9c76c512787beb7a45f8270d
Teach BBVectorize to combine, when possible, or discard metadata when fusing instructions.

The present implementation handles only TBAA and FP metadata, discarding everything else.
For debug metadata, the current behavior is maintained (the debug metadata associated with
one of the instructions will be kept, discarding that attached to the other).

This should address PR 13040.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/BBVectorize.cpp
test/Transforms/BBVectorize/metadata.ll [new file with mode: 0644]