summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-08-14 19:06:05 +0000
committerJim Grosbach <grosbach@apple.com>2012-08-14 19:06:05 +0000
commitecaef49f59bb4e414f95d89b7c6b35eb9adad314 (patch)
treed4a05ae4ebb3df36bb28e71531f08a09f3ba5df5 /llvm/lib/Target/XCore
parent2920ef43efdf49dd88e3734a85b174bbf64fa72b (diff)
downloadbcm5719-llvm-ecaef49f59bb4e414f95d89b7c6b35eb9adad314.tar.gz
bcm5719-llvm-ecaef49f59bb4e414f95d89b7c6b35eb9adad314.zip
Switch the fixed-length disassembler to be table-driven.
Refactor the TableGen'erated fixed length disassemblmer to use a table-driven state machine rather than a massive set of nested switch() statements. As a result, the ARM Disassembler (ARMDisassembler.cpp) builds much more quickly and generates a smaller end result. For a Release+Asserts build on a 16GB 3.4GHz i7 iMac w/ SSD: Time to compile at -O2 (averaged w/ hot caches): Previous: 35.5s New: 8.9s TEXT size: Previous: 447,251 New: 297,661 Builds in 25% of the time previously required and generates code 66% of the size. Execution time of the disassembler is only slightly slower (7% disassembling 10 million ARM instructions, 19.6s vs 21.0s). The new implementation has not yet been tuned, however, so the performance should almost certainly be recoverable should it become a concern. llvm-svn: 161888
Diffstat (limited to 'llvm/lib/Target/XCore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud