[PATCH] D118549: apply two more cases for store combine

Baoshan Pang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 25 22:32:50 PST 2022


BaoshanPang updated this revision to Diff 411580.
BaoshanPang added a comment.

update


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118549/new/

https://reviews.llvm.org/D118549

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7631,7 +7631,7 @@
   unsigned PreShift = INT32_MAX;
   for(auto Iter : OffsetMap) {
     if(PreShift != INT32_MAX){
-      if((Iter.first - PreShift) != (NarrowNumBits / 8))
+      if(Iter.first - PreShift != 1)
         return SDValue();
     }
     PreShift = Iter.first;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118549.411580.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220226/0eac05eb/attachment.bin>


More information about the llvm-commits mailing list