Skip the check on "hasOperandStorage" since the array will be indexed anyway.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D111696  
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 TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 17 others.  ·  View Herald TranscriptOct 13 2021, 1:33 AM This revision is now accepted and ready to land.Oct 13 2021, 1:34 AM Closed by commit rG6f5c68583924: Avoid one branch in Operation::getOpOperand()/getOperand() (NFC) (authored by mehdi_amini).  ·  Explain WhyOct 13 2021, 2:07 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 379310 mlir/include/mlir/IR/Operation.h
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||