[DAGCombiner] add early exit for store merging of truncs
authorSanjay Patel <spatel@rotateright.com>
Sat, 22 Aug 2020 20:21:10 +0000 (16:21 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sat, 22 Aug 2020 20:25:16 +0000 (16:25 -0400)
commit79cb289a95e5fee838c90cd029100393025029d2
tree4702d8bb00602e5d10a5808d4027366a9a6838f6
parent8b14db636dec8afa904366a0d5499b80d7dc7034
[DAGCombiner] add early exit for store merging of truncs

This should be NFC in terms of output because the endian
check further down would bail out too, but we are wasting
time by waiting to that point to give up. If we generalize
that function to deal with more than i8 types, we should
not have to deal with the degenerate case.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp