aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMatthias Springer <springerm@google.com>2022-12-02 11:46:14 +0100
committerMatthias Springer <springerm@google.com>2022-12-02 15:38:02 +0100
commitc1fef4e88ad461724f7454d7d8177f7fe30cf58c (patch)
tree1dd1c02a1f64ef793b64c7c67a06ea0361972276 /flang/lib/Frontend/CompilerInvocation.cpp
parent5fc071f2b452d26dcf79c2ed704510e4bee5b64f (diff)
downloadllvm-c1fef4e88ad461724f7454d7d8177f7fe30cf58c.zip
llvm-c1fef4e88ad461724f7454d7d8177f7fe30cf58c.tar.gz
llvm-c1fef4e88ad461724f7454d7d8177f7fe30cf58c.tar.bz2
[mlir][bufferization] Make `TensorCopyInsertionPass` a test pass
TensorCopyInsertion should not have been exposed as a pass. This was a flaw in the original design. It is a preparation step for bufferization and certain transforms (that would otherwise be legal) are illegal between TensorCopyInsertion and actual rewrite to MemRef ops. Therefore, even if broken down as two separate steps internally, they should be exposed as a single pass. This change affects the sparse compiler, which uses `TensorCopyInsertionPass`. A new `SparsificationAndBufferizationPass` is added to replace all passes in the sparse tensor pipeline from `TensorCopyInsertionPass` until the actual bufferization (rewrite to memref/non-tensor). It is generally unsafe to run arbitrary passes in-between, in particular passes that hoist tensor ops out of loops or change SSA use-def chains along tensor ops. Differential Revision: https://reviews.llvm.org/D138915
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions