aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2023-12-05 10:25:19 +0900
committerGitHub <noreply@github.com>2023-12-05 10:25:19 +0900
commit192439db6e3fcccf98c850bda1b970a11c590bbb (patch)
treee15a37cebe58d8e4f246abe28e1006826c03762b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc3a9c905fbc486add75e16218fe58a04b7b6c282 (diff)
downloadllvm-192439db6e3fcccf98c850bda1b970a11c590bbb.zip
llvm-192439db6e3fcccf98c850bda1b970a11c590bbb.tar.gz
llvm-192439db6e3fcccf98c850bda1b970a11c590bbb.tar.bz2
[mlir][Complex] Fix bug in `MergeComplexBitcast` (#74271)
When two `complex.bitcast` ops are folded and the resulting bitcast is a non-complex -> non-complex bitcast, an `arith.bitcast` should be generated. Otherwise, the generated `complex.bitcast` op is invalid. Also remove a pattern that convertes non-complex -> non-complex `complex.bitcast` ops to `arith.bitcast`. Such `complex.bitcast` ops are invalid and should not appear in the input. Note: This bug can only be triggered by running with `-debug` (which will should intermediate IR that does not verify) or with `MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS` (#74270).
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions