[GlobalISel] Compute debug location when merging stores more accurately
authorAnton Sidorenko <anton.sidorenko@syntacore.com>
Fri, 28 Oct 2022 09:19:04 +0000 (12:19 +0300)
committerAnton Sidorenko <anton.sidorenko@syntacore.com>
Tue, 1 Nov 2022 11:32:42 +0000 (14:32 +0300)
commit92ec61498831550b0e1231c2150e686cdf2fc125
tree3c57940f48377c0542d87a071db3880577cd5649
parent6a748100a02a8cf87363c4db91b6dd3bc2166d31
[GlobalISel] Compute debug location when merging stores more accurately

Originaly the loop did almost nothing as the calculated location was
overwritten on the next iteration.

Differential Revision: https://reviews.llvm.org/D136937
llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
llvm/test/CodeGen/AArch64/GlobalISel/store-merging-debug.mir