Bugfix for the debug intrinsic handling in InstCombiner:
authorAdrian Prantl <aprantl@apple.com>
Fri, 26 Apr 2013 17:48:33 +0000 (17:48 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 26 Apr 2013 17:48:33 +0000 (17:48 +0000)
commit163da930235839d635ecae0c1c8e2f41d8018a24
treef2860c2647f8c94cd7549fcfd366203f1b5e2434
parenta3acc2b6cf093571812e7e55d936cf188c695e23
Bugfix for the debug intrinsic handling in InstCombiner:
Since we can't guarantee that the original dbg.declare instrinsic
is removed by LowerDbgDeclare(), we need to make sure that we are
not inserting the same dbg.value intrinsic over and over.
This removes tons of redundant DIEs when compiling optimized code.

rdar://problem/13056109

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180615 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Utils/Local.cpp
test/DebugInfo/X86/instcombine-instrinsics.ll [new file with mode: 0644]