aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorChris Jackson <chris.jackson@sony.com>2021-09-19 15:52:20 +0100
committerChris Jackson <chris.jackson@sony.com>2021-09-19 21:41:44 +0100
commit5ba8020326a522c0dfa32f59a472fe20bee4908a (patch)
tree8c612910553f81550fbb29c485f05d650284f9a1 /llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
parent372e2c24b6e17bbff8fe6ed488cff5f7b7abd2b7 (diff)
downloadllvm-5ba8020326a522c0dfa32f59a472fe20bee4908a.zip
llvm-5ba8020326a522c0dfa32f59a472fe20bee4908a.tar.gz
llvm-5ba8020326a522c0dfa32f59a472fe20bee4908a.tar.bz2
[DebugInfo][LSR] Emit shorter expressions from scev-based salvaging
The scev-based salvaging for LSR can sometimes produce unnecessarily verbose expressions. This patch adds logic to detect when the value to be recovered and the induction variable differ by only a constant offset. Then, the expression to derive the current iteration count can be omitted from the dbg.value in favour of the offset. Reviewed by: aprantl Differential Revision: https://reviews.llvm.org/D109044
Diffstat (limited to 'llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions