]> granicus.if.org Git - llvm/commit
Debug Info: Fix the SDLoc propagation for a DAGCombiner rule
authorAdrian Prantl <aprantl@apple.com>
Tue, 10 Oct 2017 18:08:32 +0000 (18:08 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 10 Oct 2017 18:08:32 +0000 (18:08 +0000)
commita37e165e436c421db61bdfb4e93b20ad7282f9dd
treeede2c620af36eeb2d70aed8373e4dfb9ea44bbe0
parent2e7f7eae9d7f740b2dff1aff31f1fb68d88bc085
Debug Info: Fix the SDLoc propagation for a DAGCombiner rule

This patch ensures that the rule:
  fold (zext (load x)) -> (zext (truncate (zextload x)))
propagates the SDLoc of the load to the zextload.

<rdar://problem/33755881>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315340 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/load-combine-dbg.ll [new file with mode: 0644]