mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Implement support for globally associating abbrevs with block IDs, which
relieves us from having to emit the abbrevs into each instance of the block. This shrinks kc.bit from 3368K to 3333K, but will be a more significant win once instructions are abbreviated. The VST went from: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.29508e+07b/1.61885e+06B/404713W Average Size: 5522.73b/690.342B/172.585W % of file: 48.0645 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 7035/3 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 100 to: Block ID #14 (VALUE_SYMTAB): Num Instances: 2345 Total Size: 1.26713e+07b/1.58391e+06B/395978W Average Size: 5403.53b/675.442B/168.86W % of file: 47.5198 Tot/Avg SubBlocks: 0/0 Tot/Avg Abbrevs: 0/0 Tot/Avg Records: 120924/51.5667 % Abbrev Recs: 100 because we didn't emit the same 3 abbrevs 2345 times :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -66,8 +66,9 @@ namespace bitc {
|
||||
/// BlockInfoCodes - The blockinfo block contains metadata about user-defined
|
||||
/// blocks.
|
||||
enum BlockInfoCodes {
|
||||
BLOCKINFO_CODE_SETBID = 1, // SETBID: [blockid#]
|
||||
BLOCKINFO_CODE_ABBREV = 2 // ABBREV: [standard abbrev encoding]
|
||||
BLOCKINFO_CODE_SETBID = 1 // SETBID: [blockid#]
|
||||
// DEFINE_ABBREV has magic semantics here, applying to the current SETBID'd
|
||||
// block, instead of the BlockInfo block.
|
||||
// BLOCKNAME: give string name to block, if desired.
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user