[mlir:LLVM] Do not lookup symbol twice in the addressof verifier
authorEugene Zhulenev <ezhulenev@google.com>
Thu, 4 Aug 2022 15:41:01 +0000 (08:41 -0700)
committerEugene Zhulenev <ezhulenev@google.com>
Thu, 4 Aug 2022 15:42:38 +0000 (08:42 -0700)
commitec7f4a7c5d9794c9fdf4f894873e7edbbfddf3e2
tree4d473a600d918ada80aabe42a1ea026be938fa52
parentd1d799b6965d884f4303d33a999cfd9b1cefd963
[mlir:LLVM] Do not lookup symbol twice in the addressof verifier

`SymbolTable::lookupSymbolIn` is an expensive operation and we do not want to do it twice

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D131145
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp