Description


It looks like there are repeated called to FoldedInstructions.IndexOf where CPU spends most of its time in?
|
idx = FoldedInstructions.IndexOf (instruction); |
It might be more efficient to build a dictionary that maps instruction to index and use that instead of IndexOf?
Reproduction Steps
Expected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Description
It looks like there are repeated called to
FoldedInstructions.IndexOfwhere CPU spends most of its time in?runtime/src/tools/illink/src/linker/Linker.Steps/UnreachableBlocksOptimizer.cs
Line 1173 in ce54acd
It might be more efficient to build a dictionary that maps instruction to index and use that instead of IndexOf?
Reproduction Steps
Expected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response