[SelectionDAG] Restore calls to has_value (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 10 Jul 2022 21:37:23 +0000 (14:37 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 10 Jul 2022 21:37:23 +0000 (14:37 -0700)
commit1fd6611fc8802479a8bd03431a0541ad207ce7b9
tree0012611e905a085242ca3abdb5c3c139d2feb2f1
parent35ec8a423d46b2b81eb87ff74789f4d90d7bb00b
[SelectionDAG] Restore calls to has_value (NFC)

This patch restores calls to has_value to make it clear that we are
checking the presence of an optional value, not the underlying value.

This patch partially reverts d08f34b592ff06ccb1f36da88ec09aa926427a4d.

Differential Revision: https://reviews.llvm.org/D129454
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp