[DebugInfo][LoopVectorize] Preserve DL in generated phi instruction
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>
Wed, 4 Jul 2018 10:16:55 +0000 (10:16 +0000)
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>
Wed, 4 Jul 2018 10:16:55 +0000 (10:16 +0000)
commit204726b34551429a80e888cdd20d3235c7d93868
tree4bb23189eedc48e62c1f8f2152b62e6f7f59cefe
parentf5ba09f74bc44c83cd2578e793402eb9d6b977b8
[DebugInfo][LoopVectorize] Preserve DL in generated phi instruction

When creating `phi` instructions to resume at the scalar part of the loop,
copy the DebugLoc from the original phi over to the new one.

Differential Revision: https://reviews.llvm.org/D48769

llvm-svn: 336256
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/preserve-dbg-loc-and-loop-metadata.ll [moved from llvm/test/Transforms/LoopVectorize/duplicated-metadata.ll with 76% similarity]