aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorYi Zhang <cathyzhyi@google.com>2021-07-28 10:19:05 +0000
committerNicolas Vasilache <nicolas.vasilache@gmail.com>2021-07-28 10:19:20 +0000
commit8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a (patch)
treeb0ce24330693edaf6a43772178e6a7065e8f3f4d /llvm/lib/IR/Module.cpp
parent037b7715dd0e60369271217f90004e4b2d7c88e0 (diff)
downloadllvm-8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a.zip
llvm-8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a.tar.gz
llvm-8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a.tar.bz2
[mlir][memref] Fix collapsed shape ops memref.cast folding with changed type
`memref.collapse_shape` has verification logic to make sure result dim must be static if all the collapsing src dims are static. Cast folding might add more static information for the src operand of `memref.collapse_shape` which might change a valid collapsing operation to be invalid. Add `CollapseShapeOpMemRefCastFolder` pattern to fix this. Minor changes to `convertReassociationIndicesToExprs` to use `context` instead of `builder` to avoid extra steps to construct temporary builders. Reviewed By: nicolasvasilache, mravishankar Differential Revision: https://reviews.llvm.org/D106670
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions