Avoid one branch in Operation::getOpOperand()/getOperand() (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Wed, 13 Oct 2021 09:06:59 +0000 (09:06 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 13 Oct 2021 09:07:06 +0000 (09:07 +0000)
commit6f5c6858392415fa245f99ebdb9da0795a85c1a6
tree5087d57ff6c26b38c3e52d1033cb223622e44cfd
parent747b0472905dea3dcdb0f8224232475402582c87
Avoid one branch in Operation::getOpOperand()/getOperand() (NFC)

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

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D111696
mlir/include/mlir/IR/Operation.h