[PATCH] D150900: [InstCombine] Insert a bitcast to enable merging similar store insts
Anshil Gandhi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 12:17:02 PDT 2023
gandhi21299 created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
gandhi21299 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Given two Store instructions with equivalent pointer operands,
they could be merged into their common successor basic block if
the value operand of one is bitcasted to match the type of the
other. This patch only allows a bitcast between non-aggregate
primitive types with matching bitwidths.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150900
Files:
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/merging-multiple-stores-into-successor.ll
llvm/test/Transforms/InstCombine/store.ll
llvm/test/Transforms/LoopVectorize/invariant-store-vectorization.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150900.523501.patch
Type: text/x-patch
Size: 12592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/1691b6de/attachment.bin>
More information about the llvm-commits
mailing list