diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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;