diff options
| author | Chris Jackson <chris.jackson@sony.com> | 2021-09-19 15:52:20 +0100 |
|---|---|---|
| committer | Chris Jackson <chris.jackson@sony.com> | 2021-09-19 21:41:44 +0100 |
| commit | 5ba8020326a522c0dfa32f59a472fe20bee4908a (patch) | |
| tree | 8c612910553f81550fbb29c485f05d650284f9a1 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
| parent | 372e2c24b6e17bbff8fe6ed488cff5f7b7abd2b7 (diff) | |
| download | llvm-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 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions
