[MS] Copy the symbols assigned to the former instruction when memory folding.
authorWang, Pengfei <pengfei.wang@intel.com>
Wed, 10 Jun 2020 06:52:54 +0000 (14:52 +0800)
committerWang, Pengfei <pengfei.wang@intel.com>
Wed, 10 Jun 2020 07:38:32 +0000 (15:38 +0800)
commit6eb9eae0100f13ae2574bd74add915bec0078b4d
treebb8149d25cfd081a55f20d59134a172829a890fb
parenta8fbbf8fe251652847bd98a5800a27375e13b1f9
[MS] Copy the symbols assigned to the former instruction when memory folding.

The memory folding raplaced the old instruction without copying the symbols assigned. Which will resulted in built fail due to the lost symbols.

Reviewed by craig.topper

Differential Revision: https://reviews.llvm.org/D78471
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/test/CodeGen/X86/speculative-load-hardening-no-spill.ll