Skip to content
  1. Dec 23, 2008
    • Ted Kremenek's avatar
      PTH: Remove some methods and simplify some conditions in PTHLexer::Lex(). No... · 78cc2473
      Ted Kremenek authored
      PTH: Remove some methods and simplify some conditions in PTHLexer::Lex().  No big functionality change.
      
      llvm-svn: 61381
      78cc2473
    • Ted Kremenek's avatar
      PTH: Use 3 bytes instead of 4 bytes to encode the persistent ID for a token. · a754c403
      Ted Kremenek authored
      - This reduces the PTH size for Cocoa.h by 7%.
      - The increases PTH -Eonly speed for Cocoa.h by 0.8%.
      
      llvm-svn: 61377
      a754c403
    • Ted Kremenek's avatar
      3f94706e
    • Ted Kremenek's avatar
      PTH: · 1bd0a550
      Ted Kremenek authored
      - Encode the token length with 2 bytes instead of 4.
      - This reduces the size of the .pth file for Cocoa.h by 12%.
      - This speeds up PTH time (-Eonly) on Cocoa.h by 1.6%.
      
      llvm-svn: 61364
      1bd0a550
    • Ted Kremenek's avatar
      PTH: · 66076a96
      Ted Kremenek authored
      - In PTHLexer::Lex read all of the token data from PTH file before
        constructing the token.  The idea is to enhance locality.
      - Do not use Read8/Read32 in PTHLexer::Lex.  Inline these operations manually.
      - Change PTHManager::ReadIdentifierInfo() to PTHManager::GetIdentifierInfo().
        They are functionally the same except that PTHLexer::Lex() reads the
        persistent id.
      
      These changes result in a 3.3% speedup for PTH on Cocoa.h (-Eonly).
      
      llvm-svn: 61363
      66076a96
    • Ted Kremenek's avatar
      PTH: · 1b18ad24
      Ted Kremenek authored
      - Embed 'eom' tokens in PTH file.
      - Use embedded 'eom' tokens to not lazily generate them in the PTHLexer.
        This means that PTHLexer can always advance to the next token after
        reading a token (instead of buffering tokens using a copy).
      - Moved logic of 'ReadToken' into Lex.  GetToken & ReadToken no longer exist.
      - These changes result in a 3.3% speedup (-Eonly) on Cocoa.h.
      - The code is a little gross.  Many cleanups are possible and should be done.
      
      llvm-svn: 61360
      1b18ad24
  2. Dec 18, 2008
  3. Dec 17, 2008
  4. Dec 12, 2008
    • Ted Kremenek's avatar
      PTH: Added minor 'sibling jumping' optimization for iterating over the side... · 877556f4
      Ted Kremenek authored
      PTH: Added minor 'sibling jumping' optimization for iterating over the side table used for fast preprocessor block skipping.  This has a minor performance improvement when preprocessing Cocoa.h, but can have some wins in pathologic cases.
      
      llvm-svn: 60966
      877556f4
    • Ted Kremenek's avatar
      Added PTH optimization to not process entire blocks of tokens that appear in... · 56572ab9
      Ted Kremenek authored
      Added PTH optimization to not process entire blocks of tokens that appear in skipped preprocessor blocks.  This improves PTH speed by 6%.  The code for this optimization itself is not very optimized, and will get cleaned up.
      
      llvm-svn: 60956
      56572ab9
    • Ted Kremenek's avatar
      PTH: · 864eb392
      Ted Kremenek authored
      - Added a side-table per each token-cached file with the preprocessor conditional stack.  This tracks what #if's are matched with what #endifs and where their respective tokens are in the PTH file.  This will allow for quick skipping of excluded conditional branches in the Preprocessor.
      - Performance testing shows the addition of this information (without actually utilizing it) leads to no performance regressions.
      
      llvm-svn: 60911
      864eb392
  5. Dec 11, 2008
  6. Dec 10, 2008
  7. Dec 04, 2008
  8. Dec 03, 2008
    • Ted Kremenek's avatar
      PTH: · 73a4d287
      Ted Kremenek authored
      Use an array instead of a DenseMap to cache persistent IDs -> IdentifierInfo*.  This leads to a 4% speedup at -fsyntax-only using PTH.
      
      llvm-svn: 60452
      73a4d287
    • Ted Kremenek's avatar
      - Remove PTHManager.cpp. Move all of its functions to PTHLexer.cpp since some... · 33eeabda
      Ted Kremenek authored
      - Remove PTHManager.cpp.  Move all of its functions to PTHLexer.cpp since some of the internal methods are used by PTHLexer (their implementations are intertwined.)  This enables some important inlining opportunities at -O3.
      
      - Don't construct an std::vector<Token> prior to feeding PTH tokens to the Preprocessor.  Stream them off the PTH file directly.
      
      llvm-svn: 60447
      33eeabda
  9. Nov 27, 2008
  10. Nov 22, 2008
  11. Nov 21, 2008
    • Ted Kremenek's avatar
      PTHLexer: · 53ab374d
      Ted Kremenek authored
      - Move out logic for handling the end-of-file to LexEndOfFile (to match the Lexer) class.  The logic now mirrors the Lexer class more, which allows us to pass most of the Preprocessor test cases.
      
      llvm-svn: 59768
      53ab374d
  12. Nov 20, 2008
  13. Nov 19, 2008
  14. Nov 16, 2008
  15. Nov 13, 2008
  16. Nov 12, 2008
Loading