commit | 7c20af79cac9059790ef98876cc83cdaef2b6625 | [log] [tgz] |
---|---|---|
author | Tim Northover <tnorthover@apple.com> | Mon Aug 29 21:00:00 2016 +0000 |
committer | Tim Northover <tnorthover@apple.com> | Mon Aug 29 21:00:00 2016 +0000 |
tree | 7c5255cd19cdcec1a47387c290016c665d66ee15 | |
parent | 0d977a1eb5f6c6a8aaf39b0292df35acc88dfe94 [diff] |
GlobalISel: use multi-dimensional arrays for legalize actions. Instead of putting all possible requests into a single table, we can perform the extremely dense lookup based on opcode and type-index in constant time using multi-dimensional array-like things. This roughly halves the time spent doing legalization, which was dominated by queries against the Actions table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280011 91177308-0d34-0410-b5e6-96231b3b80d8