Skip to content

Integrate llvm-project@d45031ce5281 - #20924

Merged
hanhanW merged 4 commits into
mainfrom
integrates/llvm-20250529
May 29, 2025
Merged

hanhanW merged 4 commits into
mainfrom
integrates/llvm-20250529

Conversation

@hanhanW

@hanhanW hanhanW commented May 29, 2025 •

Copy link
Copy Markdown
Contributor

Dropped reverts, which are fixed by the head:

Carried revert:

Additional cherry-picks, which can be dropped after we bump ahead of it:

The fixes in IREE are for

The second and the third reverts because they break torch-mlir. I have a fix for IREE side and can fix torch-mlir together in our repo. I prefer fixing them later because we are already ~1 week behind the LLVM head.

The four revert is because of an assertion in convert-to-llvm lowering in ARM SME pipeline tests.

Fixes #20737

@hanhanW
hanhanW force-pushed the integrates/llvm-20250529 branch from 0732e33 to e505247 Compare May 29, 2025 02:01
@hanhanW

hanhanW commented May 29, 2025

Copy link
Copy Markdown
Contributor Author

I failed on creating upstream repro, but here is the smaller repro for ARM failure wrt the last revert:

func.func @foo(%2: memref<100x100xf32>, %3: index, %8: index) -> memref<?x?xf32, strided<[100, 1], offset: ?>> {
  %c100 = arith.constant 100 : index
  %vscale = vector.vscale
  %c4 = arith.constant 4 : index
  %c4_vscale = arith.muli %vscale, %c4 : index
  %5 = arith.subi %c100, %3 : index
  %6 = arith.cmpi slt, %5, %c4_vscale : index
  %7 = arith.select %6, %5, %c4_vscale : index
  %10 = arith.subi %c100, %8 : index
  %11 = arith.cmpi slt, %10, %c4_vscale : index
  %12 = arith.select %11, %10, %c4_vscale : index
  %subview = memref.subview %2[%3, %8] [%7, %12] [1, 1] : memref<100x100xf32> to memref<?x?xf32, strided<[100, 1], offset: ?>>
  return %subview : memref<?x?xf32, strided<[100, 1], offset: ?>>
}

Apply llvm/llvm-project@989aadf, and run iree-opt --iree-convert-to-llvm repro.mlir

@hanhanW

hanhanW commented May 29, 2025

Copy link
Copy Markdown
Contributor Author

There is a RISC-V numerical issue:

image

I don't have env to run it, so I'm going to disable it to unblock the integrate. I can compare the LLVM IR though, but that'd be too expensive for me.

@hanhanW
hanhanW merged commit b85451b into main May 29, 2025
@hanhanW
hanhanW deleted the integrates/llvm-20250529 branch May 29, 2025 15:15
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Dropped reverts, which are fixed by the head:
-
iree-org/llvm-project@0357fd9
-
iree-org/llvm-project@20a9a98

Carried revert:
- (old)
iree-org/llvm-project@13631cf
- (new)
iree-org/llvm-project@5f144b5
- (new)
iree-org/llvm-project@cddcc13
- (new)
llvm/llvm-project@989aadf

Additional cherry-picks, which can be dropped after we bump ahead of it:
-
iree-org/llvm-project@92b9689

The fixes in IREE are for
-
llvm/llvm-project@05494f3
-
llvm/llvm-project@61d5fdf

The second and the third reverts because they break torch-mlir. I have a
fix for IREE side and can fix torch-mlir together in our repo. I prefer
fixing them later because we are already ~1 week behind the LLVM head.

The four revert is because of an assertion in convert-to-llvm lowering
in ARM SME pipeline tests.

Fixes #20737

---------

Signed-off-by: hanhanW <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking issue for revert of https://github.com/llvm/llvm-project/pull/137930

2 participants