diff options
author | Anna Thomas <anna@azul.com> | 2022-04-27 11:00:58 -0400 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2022-04-29 10:00:06 -0400 |
commit | 205246cb64358aa6f03b54d47d73708122d76bbf (patch) | |
tree | 1f0473d7ffb135ea60ba6ab103588d0c23051a1e /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | f685bce8080cd817adc67a7c06fb6834fa356139 (diff) | |
download | llvm-205246cb64358aa6f03b54d47d73708122d76bbf.zip llvm-205246cb64358aa6f03b54d47d73708122d76bbf.tar.gz llvm-205246cb64358aa6f03b54d47d73708122d76bbf.tar.bz2 |
[CompileTime] [Passes] Avoid computing unnecessary analyses. NFC
Similar to c515b2f39e77, If there are no loops in the function as seen
through LI, we should avoid computing the remaining expensive analyses
(such as SCEV, BPI). Reordered the analyses requests and early return
if there are no loops.
The logic of avoiding expensive analyses is applied to LoopVectorizer,
LoopLoadElimination and LoopUnrollPass, i.e. all function passes which operate
on loops.
This is an NFC with compile time improvement.
Differential Revision: https://reviews.llvm.org/D124529
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions