This is an archive of the discontinued LLVM Phabricator instance.

Avoid one branch in Operation::getOpOperand()/getOperand() (NFC)
ClosedPublic

Authored by mehdi_amini on Oct 13 2021, 1:33 AM.

Details

Summary

Skip the check on "hasOperandStorage" since the array will be indexed anyway.

Diff Detail

Event Timeline

mehdi_amini created this revision.Oct 13 2021, 1:33 AM
mehdi_amini requested review of this revision.Oct 13 2021, 1:33 AM
rriddle accepted this revision.Oct 13 2021, 1:34 AM
This revision is now accepted and ready to land.Oct 13 2021, 1:34 AM