Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MC] Speed up AttemptToFoldSymbolOffsetDifference in the absence of M…
…CAsmLayout The `FA < FB` check added by https://reviews.llvm.org/D153096 is slow. Compute an informal layout order to speed up computation when `AttemptToFoldSymbolOffsetDifference` is repeatedly called for the same section. Commit 9500a5d ("[MC] Make UseAssemblerInfoForParsing mostly true") exposed this performance pitfall, which was mitigated by `setUseAssemblerInfoForParsing(false)` workarounds (e.g. commit 245491a). The workaround can be removed now.
- Loading branch information