[all-commits] [llvm/llvm-project] 7a06b1: [DAGCombiner] allow more store merging for non-i8 ...
RotateRight via All-commits
all-commits at lists.llvm.org
Mon Sep 7 11:12:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7a06b166b1afb457a7df6ad73a6710b4dde4db68
https://github.com/llvm/llvm-project/commit/7a06b166b1afb457a7df6ad73a6710b4dde4db68
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2020-09-07 (Mon, 07 Sep 2020)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/AArch64/merge-trunc-store.ll
M llvm/test/CodeGen/X86/stores-merging.ll
Log Message:
-----------
[DAGCombiner] allow more store merging for non-i8 truncated ops
This is a follow-up suggested in D86420 - if we have a pair of stores
in inverted order for the target endian, we can rotate the source
bits into place.
The "be_i64_to_i16_order" test shows a limitation of the current
function (which might be avoided if we integrate this function with
the other cases in mergeConsecutiveStores). In the earlier
"be_i64_to_i16" test, we skip the first 2 stores because we do not
match the full set as consecutive or rotate-able, but then we reach
the last 2 stores and see that they are an inverted pair of 16-bit
stores. The "be_i64_to_i16_order" test alters the program order of
the stores, so we miss matching the sub-pattern.
Differential Revision: https://reviews.llvm.org/D87112
More information about the All-commits
mailing list