[MachineCSE] Don't carry the wrong location when hoisting
authorDavide Italiano <ditaliano@apple.com>
Mon, 6 Apr 2020 23:35:30 +0000 (16:35 -0700)
committerDavide Italiano <ditaliano@apple.com>
Mon, 6 Apr 2020 23:36:22 +0000 (16:36 -0700)
commit8115e08b0536ab102311fd3ac399a52e97955ca2
treeb86ff6cd8b1d01ddd68b75006e13792ae52e9226
parent9f09550c50538e1bb32956583cb0757e1a23d9c1
[MachineCSE] Don't carry the wrong location when hoisting

PR: 45425
<rdar://problem/61359768>

Differential Revision:  https://reviews.llvm.org/D77604
llvm/lib/CodeGen/MachineCSE.cpp
llvm/test/DebugInfo/X86/machinecse-wrongdebug-hoist.ll [new file with mode: 0644]