Page MenuHomePhabricator

[RISCV] Simplify calling use_empty()

Authored by benshi001 on Jun 19 2020, 11:50 PM.



The check of the possible dead node can be performed via SDValue::use_empty() instead of SDNode::use_empty().

Diff Detail

Event Timeline

benshi001 created this revision.Jun 19 2020, 11:50 PM

Sorry, it is my mistake. Please close this review request.

The API is actually different: SDNode::use_empty checks uses while SDValue::use_empty only checks uses of the return value. The former is more efficient. I think it is possible that SDValue::use_empty can be used instead but I am not sure this entails a change.

You can click "Add Action..." and then abandon the differential revision.

benshi001 abandoned this revision.Jun 20 2020, 4:44 PM