[DAGCombiner] restrict store merge of truncs to early combining
authorSanjay Patel <spatel@rotateright.com>
Sun, 23 Aug 2020 12:36:46 +0000 (08:36 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 23 Aug 2020 14:44:23 +0000 (10:44 -0400)
commit1d0fa798248f2d4e7a3b5b6d6465edb41d13354d
treeaf65b6881aa81344f52f18c49d0b07da74cf0066
parent55208f5a2126e491c41ba9ff6542551bfc090e86
[DAGCombiner] restrict store merge of truncs to early combining

The pattern matching does not account for truncating stores,
so it is unlikely to work at later stages. So we are likely
wasting compile-time with no hope of improvement by running
this later.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp