[PATCH] D74587: [mlir][Parser][NFC] Remove several usages of getEncodedSourceLocation

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 19:04:36 PST 2020


rriddle created this revision.
rriddle added a reviewer: mehdi_amini.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar.
Herald added a project: LLVM.

getEncodedSourceLocation can be very costly to compute, especially if the input line becomes very long. This revision inlines some of the verification of a few `getChecked` methods to avoid the materialization of an encoded source location.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74587

Files:
  mlir/lib/Parser/Parser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74587.244561.patch
Type: text/x-patch
Size: 8092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200214/d3e63994/attachment.bin>


More information about the llvm-commits mailing list