[all-commits] [llvm/llvm-project] fd5387: [mlir][LLVM] Add `BitcastStores` type-consistency ...
Markus Böck via All-commits
all-commits at lists.llvm.org
Sun Jul 9 23:57:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd5387f44f0f1886a5509baa563e2b8e53e67453
https://github.com/llvm/llvm-project/commit/fd5387f44f0f1886a5509baa563e2b8e53e67453
Author: Markus Böck <markus.bock+llvm at nextsilicon.com>
Date: 2023-07-10 (Mon, 10 Jul 2023)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/Transforms/TypeConsistency.h
M mlir/lib/Dialect/LLVMIR/Transforms/TypeConsistency.cpp
M mlir/test/Dialect/LLVMIR/type-consistency.mlir
Log Message:
-----------
[mlir][LLVM] Add `BitcastStores` type-consistency pattern
Current patterns attempt to immediately create type-consistent stores by bitcasting the value to the type-hint leading to needless code duplication.
This patch extracts that case into its own pattern, allowing other patterns to create type-inconsistent stores and have subsequent pattern applications turn it into a type-consistent store.
Differential Revision: https://reviews.llvm.org/D154587
More information about the All-commits
mailing list