[llvm] [RFC][MC] Cache MCRegAliasIterator (PR #93510)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 05:19:43 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:
Stray thought: this class is used only in one place and could be inlined.
https://github.com/llvm/llvm-project/pull/93510
More information about the llvm-commits
mailing list