[PATCH] D29902: [BranchFolding] Update debug location along with the update of branch instruction.

Taewook Oh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 12:11:50 PST 2017


twoh created this revision.

Currently, BranchFolder drops DebugLoc for branch instructions in some places. For example, for the test code attached, the branch instruction of 'entry' block has a DILocation of

  !12 = !DILocation(line: 6, column: 3, scope: !11)

, but this information is gone when then block is lowered because BranchFolder misses it. This patch is a fix for this issue.


https://reviews.llvm.org/D29902

Files:
  lib/CodeGen/BranchFolding.cpp
  test/CodeGen/X86/branchfolding-debugloc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29902.88238.patch
Type: text/x-patch
Size: 5871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170213/9ba2ac87/attachment.bin>


More information about the llvm-commits mailing list