diff options
author | Florian Hahn <flo@fhahn.com> | 2025-03-19 15:13:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 15:13:43 +0000 |
commit | 11b869957232e6f5dfec5c88d636fe808e329d8d (patch) | |
tree | ce532c67aa9fccb821c73b148d58e62105ee95d7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4f5ccf22fab7b83651511dd8eea6b60266b84bf2 (diff) | |
download | llvm-11b869957232e6f5dfec5c88d636fe808e329d8d.zip llvm-11b869957232e6f5dfec5c88d636fe808e329d8d.tar.gz llvm-11b869957232e6f5dfec5c88d636fe808e329d8d.tar.bz2 |
[LV] Don't skip instrs with side-effects in reg pressure computation. (#126415)
calculateRegisterUsage adds end points for each user of an instruction
to Ends and ignores instructions not added to it, i.e. instructions with
no users.
This means things like stores aren't included, which in turn means
values that are only used in stores are also not included for
consideration. This means we underestimate the register usage in cases
where the only users are things like stores.
Update the code to don't skip instructions without users (i.e. not in
Ends) if they have side-effects.
PR: https://github.com/llvm/llvm-project/pull/126415
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions