Revert "[Flow] Convert from tensor.cast to flow.tensor.reshape early …(#18256)" #18331
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit 1c0c5a6.
This is causing an issue with https://github.com/iree-org/iree/actions/runs/10505447157/job/29119827242#step:5:2269
iree/tests/e2e/regression/check_regression_llvm-cpu_layernorm.mlir
Triaging the bug I see that one of the dispatches is slightly different but should result to the same numerics but it does not
Here is how the problem dispatch used to be originally
with the reverting PR this dispatch is becoming
The difference is at
%19 = arith.subf %cst, %18 : f32
Note that in both cases
%11 : tensor<128x384xf32>
is5.0
from the model input and hence the output should be same, however onarch64
it is not but on x86 it is, the IR at the mlir llvm dialect is identicalbetween x86 and arch64 so its not some easy to spot intrinsics / fast math kind of bug AFAICS