Fix invalid alignment in DAGCombiner::isLegalNarrowLdSt
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 29 Jun 2020 09:22:15 +0000 (09:22 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 29 Jun 2020 09:22:15 +0000 (09:22 +0000)
commit3500d9ec95741c1421d62b914bfa36aa6bbc6b4f
tree814e3514b0e472a370d64666c21d75fbbb75781f
parente34523c87c3f1cfabcf741568dede026bbb12d3a
Fix invalid alignment in DAGCombiner::isLegalNarrowLdSt

`ShAmt / 8` can be a non power of two, this can lead to an invalid alignment.
context: https://reviews.llvm.org/D41350#inline-749165

Differential Revision: https://reviews.llvm.org/D82565
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/ARM/and-load-combine.ll