[PATCH] D45396: [DebugInfo] Create merged locations for instructions other than calls

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 18:04:07 PDT 2018


vsk created this revision.
vsk added reviewers: uweigand, dblaikie, aprantl.
Herald added a subscriber: JDevlieghere.

This lifts a restriction on DILocation::getMergedLocation(), allowing it
to create merged locations for instructions other than calls.

Instruction::applyMergedLocation() now defaults to creating merged
locations for all instructions.

The default behavior of getMergedLocation() is unchanged: callers which
invoke it directly are unaffected.

This change will enable a follow-up Mem2Reg fix which improves crash
reporting.


https://reviews.llvm.org/D45396

Files:
  include/llvm/IR/DebugInfoMetadata.h
  lib/IR/DebugInfo.cpp
  lib/IR/DebugInfoMetadata.cpp
  test/DebugInfo/Generic/instcombine-phi.ll
  test/DebugInfo/Generic/simplifycfg_sink_last_inst.ll
  test/DebugInfo/Generic/store-tail-merge.ll
  test/Transforms/SimplifyCFG/remove-debug-2.ll
  test/Transforms/SimplifyCFG/remove-debug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45396.141457.patch
Type: text/x-patch
Size: 11202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180407/58a50fb3/attachment.bin>


More information about the llvm-commits mailing list