This is an archive of the discontinued LLVM Phabricator instance.

[mlir:LLVM] Do not lookup symbol twice in the addressof verifier
ClosedPublic

Authored by ezhulenev on Aug 3 2022, 11:41 PM.

Details

Summary

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

Diff Detail

Event Timeline

ezhulenev created this revision.Aug 3 2022, 11:41 PM
Herald added a project: Restricted Project. · View Herald Transcript
ezhulenev requested review of this revision.Aug 3 2022, 11:41 PM
ezhulenev edited the summary of this revision. (Show Details)Aug 3 2022, 11:42 PM
ftynse accepted this revision.Aug 4 2022, 3:32 AM
ftynse added inline comments.
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
1751–1756

Nit: expand auto unless there's a cast on the right-hand side.

This revision is now accepted and ready to land.Aug 4 2022, 3:32 AM
ezhulenev updated this revision to Diff 449992.Aug 4 2022, 8:35 AM

Spell the pointer type

ezhulenev updated this revision to Diff 449997.Aug 4 2022, 8:41 AM
ezhulenev marked an inline comment as done.

Roll back accidental formatting changes

This revision was landed with ongoing or failed builds.Aug 4 2022, 8:42 AM
This revision was automatically updated to reflect the committed changes.