[llvm] [LLVM][Target] Use ListSeparator in lib/Target (PR #172919)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 19 09:00:39 PST 2025


================
@@ -155,12 +155,7 @@ bool AArch64GenRegisterBankInfo::checkPartialMappingIdx(
     return false;
 
   PartialMappingIdx Previous = Order.front();
-  bool First = true;
-  for (const auto &Current : Order) {
-    if (First) {
-      First = false;
-      continue;
-    }
+  for (const auto &Current : Order.drop_front()) {
----------------
jurahul wrote:

Agreed, will put in a different PR,

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


More information about the llvm-commits mailing list