loop-rotate: eliminate duplicate debug intrinsics after splicing.
authorAdrian Prantl <aprantl@apple.com>
Wed, 1 Nov 2017 20:43:30 +0000 (20:43 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 1 Nov 2017 20:43:30 +0000 (20:43 +0000)
commitf14c45fbabe7da1ed204c8dd2d4b8a83f2d2767e
treea55da62d62648ef13dfe051f31e04699bfca017c
parent2db2d47e39d2d1b07427e055ebfaeceb90794821
loop-rotate: eliminate duplicate debug intrinsics after splicing.

Fixes part of PR35113.

This reapplies r317105 with an additional check for isa<Instruction>
as found by the bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/BasicBlockUtils.cpp
test/Transforms/LoopRotate/dbg-value-duplicates.ll [new file with mode: 0644]