[DAGCombiner] add enum for store source value; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 8 Jul 2020 15:48:41 +0000 (11:48 -0400)
committerSanjay Patel <spatel@rotateright.com>
Wed, 8 Jul 2020 16:49:59 +0000 (12:49 -0400)
commit39329d5724d94737fda0212f8e89ca240f14474a
tree118e0675a950a140daeba503c8f176beff4e7b0b
parent800fb68420681d14f7690b76421c57ff474349a1
[DAGCombiner] add enum for store source value; NFC

This removes existing code duplication and allows us to
assert that we are handling the expected cases.

We have a list of outstanding bugs that could benefit by
handling truncated source values, so that's a possible
addition going forward.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp