LoongArchISD::CSRWR has two results. The first is the result of
loongarch.csrwr.[wd] intrinsic and the second is the chain. But
currently the chain is not processed correctly when creating this
node, resulting in the csrwr instruction being optimized out when
the result is not used by anyone [1]. LoongArchISD::CSRXCHG has
the same issue.
This patch addresses this issue.