aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <quentin.colombet@gmail.com>2022-10-15 00:25:56 +0000
committerQuentin Colombet <quentin.colombet@gmail.com>2022-12-02 10:17:06 +0000
commitc8e15afa4caf74f0d8281ca3e44674f1f6c1bc52 (patch)
treeba112bf5531d923fa5777a19dc2bb700791a2b29 /llvm/lib/CodeGen/BranchFolding.cpp
parent1522a3b7b34b41cf0b17678e4a8687797f44a3f0 (diff)
downloadllvm-c8e15afa4caf74f0d8281ca3e44674f1f6c1bc52.zip
llvm-c8e15afa4caf74f0d8281ca3e44674f1f6c1bc52.tar.gz
llvm-c8e15afa4caf74f0d8281ca3e44674f1f6c1bc52.tar.bz2
[mlir][MemRefToLLVM] Remove the code for lowering subview
Subviews are supposed to be expanded before we hit the lowering code. The expansion is done with the pass called expand-strided-metadata. Add a test that demonstrate how these passes can be linked up to achieve the desired lowering. This patch is NFC in spirit but not in practice because `subview` gets lowered into `reinterpret_cast(extract_strided_metadata, <some math>)` which lowers in two memref descriptors (one for `reinterpert_cast` and one for `extract_strided_metadata`), which creates some noise of the form: `extractvalue(unrealized_cast(extractvalue[0]))[0]` that is currently not simplified within MLIR but that is really just noop in that case. Differential Revision: https://reviews.llvm.org/D136377
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions