================
@@ -361,9 +364,10 @@ bool LoongArchMergeBaseOffsetOpt::foldLargeOffset(
   SmallVector<MachineInstr *, 4> Instrs;
   int64_t Offset = 0;
   int64_t Mask = -1;
+  int Shift = 0;
 
-  // This can point to one of [ORI, LU12I.W, LU32I.D, LU52I.D]:
-  for (int i = 0; i < 4; i++) {
+  // This can point to one of [ORI, LU12I.W, LU32I.D, LU52I.D, SLLI.D]:
+  for (int i = 0; i < 5; i++) {
----------------
heiher wrote:

```suggestion
  for (int i = 0; i < 4; i++) {
```

It's max depth of chain.

https://github.com/llvm/llvm-project/pull/242357
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to