[PATCH] D136261: Templates for singleton loop queries
Jamie Schmeiser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 08:14:00 PDT 2022
jamieschmeiser created this revision.
jamieschmeiser added a reviewer: Meinersbur.
Herald added a subscriber: hiraditya.
Herald added a project: All.
jamieschmeiser requested review of this revision.
Herald added a project: LLVM.
Introduce templates to loop queries looking for singletons.
Several loop queries look for a singleton by finding all instances and then
returning whether there is 1 instance or not. This can be improved by
stopping the search after 2 have been found. Introduce templates for
these functions to special-case such usage.
There is no intended functional change.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136261
Files:
llvm/include/llvm/Analysis/LoopInfo.h
llvm/include/llvm/Analysis/LoopInfoImpl.h
llvm/include/llvm/CodeGen/MachineLoopInfo.h
llvm/lib/Analysis/LoopInfo.cpp
llvm/lib/CodeGen/MachineLoopInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136261.468920.patch
Type: text/x-patch
Size: 9924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221019/c0ef0aa1/attachment.bin>
More information about the llvm-commits
mailing list