[PATCH] D124529: [CompileTime] [Passes] Avoid computing unnecessary analyses. NFC
Anna Thomas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 08:11:27 PDT 2022
anna created this revision.
anna added reviewers: nikic, fhahn, mkazantsev.
Herald added subscribers: javed.absar, zzheng, hiraditya.
Herald added a project: All.
anna requested review of this revision.
Herald added a project: LLVM.
Similar to c515b2f39e77 <https://reviews.llvm.org/rGc515b2f39e77f80b564e53c4c59d8c4d8bd432cf>, 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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124529
Files:
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/SCCP/preserve-analysis.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124529.425525.patch
Type: text/x-patch
Size: 5340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/e5a28b3b/attachment-0001.bin>
More information about the llvm-commits
mailing list