aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2022-01-31 12:38:59 +0000
committerJeremy Morse <jeremy.morse@sony.com>2022-01-31 12:54:17 +0000
commitc703d77a61ac73402bb024558ea39326d17d25c5 (patch)
treea6ca1d61ac33c965a75134558ff5b7e2fd004d0d /llvm/lib/Transforms/Utils/Local.cpp
parent9a6b0afbe18d3abdc17d6208daecb8839b994e4a (diff)
downloadllvm-c703d77a61ac73402bb024558ea39326d17d25c5.zip
llvm-c703d77a61ac73402bb024558ea39326d17d25c5.tar.gz
llvm-c703d77a61ac73402bb024558ea39326d17d25c5.tar.bz2
[DebugInfo][InstrRef] Don't fully propagate single assigned variables
If we only assign a variable value a single time, we can take a short-cut when computing its location: the variable value is only valid up to the dominance frontier of where the assignemnt happens. Past that point, there are other predecessors from where the variable has no value, meaning the variable has no location past that point. This patch recognises this scenario, and avoids expensive SSA computation, to improve compile-time performance. Differential Revision: https://reviews.llvm.org/D117877
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions