[llvm] [RFC][MC] Cache MCRegAliasIterator (PR #93510)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 00:06:53 PDT 2024


================
@@ -20,6 +20,85 @@
 
 using namespace llvm;
 
+namespace {
+/// MCRegAliasIterator enumerates all registers aliasing Reg.  This iterator
+/// does not guarantee any ordering or that entries are unique.
+class MCRegAliasIteratorImpl {
----------------
s-barannikov wrote:

It would be just three nested loops as I can see it. Anyway, this was just a thought.

https://github.com/llvm/llvm-project/pull/93510


More information about the llvm-commits mailing list