diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-06-25 17:26:56 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-06-25 17:26:56 +0000 |
| commit | 3cc6cb1d3553df2bae730a31233e6e46f9697377 (patch) | |
| tree | 64707df866f793ceadf92999a92516a3e53c20bf /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | |
| parent | b9cb88a4b045f17e93bd33cd091acb4ded962479 (diff) | |
| download | bcm5719-llvm-3cc6cb1d3553df2bae730a31233e6e46f9697377.tar.gz bcm5719-llvm-3cc6cb1d3553df2bae730a31233e6e46f9697377.zip | |
[X86] Sort the static memory folding tables by reg opcode. Remove the reg->mem DenseMaps in favor of binary search.
With the static tables sorted we can binary search them directly for reg->mem lookups. This removes 6 DenseMaps that had to be created when X86InstrInfo is constructed.
We still have one Mem->Reg DenseMap for the reverse direction. This is created just as before by walking the reg->mem arrays to populate it.
Differential Revision: https://reviews.llvm.org/D48527
llvm-svn: 335501
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions

