[PATCH] SROA: Defer migrating the debug info for new allocas until after all partitions are created.

Adrian Prantl aprantl at apple.com
Tue Dec 23 15:13:28 PST 2014


Tiny update: Don't add the dbg.declare to DeadInsts. It's redundant because it will get removed automatically when the alloca is removed. It's also a bad idea to remove the same instruction more than once.


http://reviews.llvm.org/D6766

Files:
  lib/Transforms/Scalar/SROA.cpp
  test/DebugInfo/X86/array2.ll
  test/DebugInfo/X86/sroasplit-1.ll
  test/DebugInfo/X86/sroasplit-2.ll
  test/DebugInfo/X86/sroasplit-3.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6766.17611.patch
Type: text/x-patch
Size: 20045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141223/c3bd8203/attachment.bin>


More information about the llvm-commits mailing list