You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle the upstream switch of tosa.mul to use an optional shift operand by allowing the constant folding path to accept and validate a constant zero shift tensor. Relax the shared binary folding helper to work with ops that gain extra operands so mul no longer asserts. Update the TOSA constant-folding test cases to spell out zero-shift operands, capture the new value numbering, and document these findings for future bump runs.
Modifications (c) Copyright 2023-2025 Advanced Micro Devices, Inc. or its affiliates
2
+
3
+
We are merging upstream LLVM from upstream/main into our local fork (remote: aie-public branch: aie-public).
4
+
For this, the bump automation script creates merges from upstream/main into our branch.
5
+
The merge failed with conflicts and/or some tests fail after the merge.
6
+
Your task is to solve all merge conflicts (if any) and fix all tests (if any fail).
7
+
8
+
To find the merge-conflicts, look for conflict markers in the latest commit on this branch.
9
+
Ignore the `clang/test/Lexer/conflict-marker.c` file; it contains conflict markers for testing purpose and those must stay there.
10
+
11
+
To run the build, use `source .envrc && ninja -C build`. Use a timeout of 30 minutes when running the build.
12
+
13
+
To run tests, use `source .envrc && ./check-bump.py`. To run only one test (which is much faster),
14
+
run `source .envrc && LIT_FILTER=<testname> ./check-bump.py`, where `<testname>` is the test you want to run.
15
+
Use a timeout of 15 minutes when running tests.
16
+
17
+
Continue until `./check-bump.py` passes. Then, make a commit with title "Solve merge conflicts after bump (AI)" or "Solve merge conflicts and fixed tests after bump (AI)"
18
+
or "Fixed tests after bump (AI)" (depending on what needed to be done).
19
+
In the body of the commit, describe what had to be done and the reasoning behind your changes.
20
+
21
+
Additional notes from the a58e774f merge:
22
+
-`tosa.mul` now models the shift as an optional third tensor operand, not an integer attribute. Update folds/tests accordingly; constant folding must verify the shift operand is a constant tensor of zeros.
23
+
-`constantBinaryOpShouldBeFolded` is shared across elementwise folders. Allow at least two operands so the new `mul` signature (with shift) does not trip its assertion.
24
+
- MLIR test `mlir/test/Dialect/Tosa/constant-mul-opt.mlir` needs zero-shift operands spelled out via `tosa.const` tensors; adjust `CHECK` patterns to bind the new values (use `%.*` captures).
25
+
- If `lld :: ELF/lto/cache.ll` fails due to cache ordering after a large test run, re-running `./check-bump.py` without changes succeeded; likely transient.
0 commit comments