OSDN Git Service

[RegisterCoalescer] Better DebugLoc for reMaterializeTrivialDef
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 2 Feb 2016 06:41:55 +0000 (06:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 2 Feb 2016 06:41:55 +0000 (06:41 +0000)
commita101dc9a9c3dd6174cb22595dd9964bbcadb5d90
tree4c108d7aa2bf53031c75f5aa926c5c0af5e89fea
parentd3ec736574aa5a331b5dacff2ba3109a184d64f6
[RegisterCoalescer] Better DebugLoc for reMaterializeTrivialDef

When rematerializing a computation by replacing the copy, use the copy's
location.  The location of the copy is more representative of the
original program.

This partially fixes PR10003.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/X86/loc-remat.ll [new file with mode: 0644]